MySQL 8.4.2
Source Code Documentation
dd_view.cc File Reference
#include "sql/dd/dd_view.h"
#include <string.h>
#include <sys/types.h>
#include <time.h>
#include <memory>
#include <string>
#include "lex_string.h"
#include "m_string.h"
#include "my_alloc.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_sys.h"
#include "my_time.h"
#include "mysql/components/services/log_builtins.h"
#include "mysql/components/services/log_shared.h"
#include "mysql/my_loglevel.h"
#include "mysql/mysql_lex_string.h"
#include "mysql/udf_registration_types.h"
#include "mysql_com.h"
#include "mysqld_error.h"
#include "sql/auth/sql_security_ctx.h"
#include "sql/dd/cache/dictionary_client.h"
#include "sql/dd/dd.h"
#include "sql/dd/dd_table.h"
#include "sql/dd/dictionary.h"
#include "sql/dd/impl/dictionary_impl.h"
#include "sql/dd/impl/utils.h"
#include "sql/dd/properties.h"
#include "sql/dd/string_type.h"
#include "sql/dd/types/abstract_table.h"
#include "sql/dd/types/schema.h"
#include "sql/dd/types/view.h"
#include "sql/dd/types/view_routine.h"
#include "sql/dd/types/view_table.h"
#include "sql/dd_table_share.h"
#include "sql/field.h"
#include "sql/handler.h"
#include "sql/histograms/value_map.h"
#include "sql/item.h"
#include "sql/item_create.h"
#include "sql/item_func.h"
#include "sql/key.h"
#include "sql/log.h"
#include "sql/mem_root_array.h"
#include "sql/parse_file.h"
#include "sql/sp.h"
#include "sql/sql_class.h"
#include "sql/sql_lex.h"
#include "sql/sql_list.h"
#include "sql/sql_servers.h"
#include "sql/sql_tmp_table.h"
#include "sql/system_variables.h"
#include "sql/table.h"
#include "sql/thd_raii.h"
#include "sql/transaction.h"
#include "sql/tztime.h"

Namespaces

namespace  dd
 The version of the current data dictionary table definitions.
 

Functions

static ulonglong dd::dd_get_old_view_check_type (dd::View::enum_check_option type)
 
static dd::View::enum_check_option dd::dd_get_new_view_check_type (ulonglong type)
 For enum in dd::View. More...
 
static enum enum_view_algorithm dd::dd_get_old_view_algorithm_type (dd::View::enum_algorithm type)
 
static dd::View::enum_algorithm dd::dd_get_new_view_algorithm_type (enum enum_view_algorithm type)
 
static ulonglong dd::dd_get_old_view_security_type (dd::View::enum_security_type type)
 
static dd::View::enum_security_type dd::dd_get_new_view_security_type (ulonglong type)
 
static bool dd::fill_dd_view_columns (THD *thd, View *view_obj, const Table_ref *view)
 Method to fill view columns from the first Query_block of view query. More...
 
static void dd::fill_dd_view_tables (View *view_obj, const Table_ref *view, const Table_ref *query_tables)
 Method to fill base table and view names used by view query in DD View object. More...
 
static void dd::fill_dd_view_routines (View *view_obj, Query_tables_list *routines_ctx)
 Method to fill view routines from the set of routines used by view query. More...
 
static bool dd::fill_dd_view_definition (THD *thd, View *view_obj, Table_ref *view)
 Method to fill view information in the View object. More...
 
bool dd::update_view (THD *thd, dd::View *new_view, Table_ref *view)
 Update view metadata in dd.views. More...
 
bool dd::create_view (THD *thd, const dd::Schema &schema, Table_ref *view)
 Store view metadata in the data-dictionary. More...
 
bool dd::read_view (Table_ref *view, const dd::View &view_ref, MEM_ROOT *mem_root)
 Read view metadata from dd.views into Table_ref. More...
 
bool dd::update_view_status (THD *thd, const char *schema_name, const char *view_name, bool status, bool commit_dd_changes)
 Update view status(valid/invalid) value in dd.views.options. More...