MySQL 9.4.0
Source Code Documentation
ddl.cc File Reference
#include "ddl.h"
#include "content_tree.h"
#include "mysql/components/services/log_builtins.h"
#include "mysqld_error.h"
#include "sql/dd/cache/dictionary_client.h"
#include "sql/dd/dd_view.h"
#include "sql/dd/types/table.h"
#include "sql/item_sum.h"
#include "sql/sql_lex.h"
#include "sql/sql_parse.h"
#include "sql/thd_raii.h"

Classes

class  jdv::View_lex_handler
 Class to handle view Lex. More...
 

Namespaces

namespace  jdv
 

Functions

static bool jdv::validate_view_syntax (THD *thd, Query_expression *qe, const char *object_name, bool root_query)
 Performs syntax validation of a given JSON DUALITY VIEW. More...
 
static bool jdv::meets_relationship_rules (Content_tree_node *node)
 Performs validation of below semantic rules: More...
 
static bool jdv::is_column_with_unsupported_type_projected (Content_tree_node *node)
 Performs validation of below semantic rules: More...
 
static bool jdv::meets_all_semantic_rules (Content_tree_node *node, std::map< std::string, Mem_root_array< Key_column_info > * > &table_columns_map)
 Apply duality view create rules. More...
 
static bool jdv::validate_view_semantics (Content_tree_node *root, std::map< std::string, Mem_root_array< Key_column_info > * > &table_columns_map)
 Performs semantic validation of a given JSON DUALITY VIEW. More...
 
bool jdv::is_prepare_required (THD *thd, Table_ref *table_ref)
 Check if duality view prepared is required. More...
 
bool jdv::prepare (THD *thd, Table_ref *table_ref)
 Performs Syntax validation, parepares metadata tree and performs Semantic validation of a given JSON DUALITY VIEW. More...