23#ifndef SQL_DB_INCLUDED
24#define SQL_DB_INCLUDED
45 bool *cur_db_changed);
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:33
const char * collation
Definition: audit_api_message_emit.cc:183
borrowable::session_track::Schema< true > Schema
Definition: classic_protocol_session_track.h:276
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
static mysql_service_status_t create(const char *service_names[], reference_caching_channel *out_channel) noexcept
Definition: component.cc:44
const char * db_name
Definition: rules_table_service.cc:54
bool check_schema_readonly(THD *thd, const char *schema_name, TABLE_SHARE *share=nullptr)
Check the read_only option for the given schema, and report error if the schema is not writable.
Definition: sql_db.cc:208
bool mysql_rm_db(THD *thd, const LEX_CSTRING &db, bool if_exists)
Drop all tables, routines and events in a database and the database itself.
Definition: sql_db.cc:710
bool mysql_change_db(THD *thd, const LEX_CSTRING &new_db_name, bool force_switch)
Change the current database and its attributes unconditionally.
Definition: sql_db.cc:1357
bool mysql_opt_change_db(THD *thd, const LEX_CSTRING &new_db_name, LEX_STRING *saved_db_name, bool force_switch, bool *cur_db_changed)
Change the current database and its attributes if needed.
Definition: sql_db.cc:1544
bool mysql_alter_db(THD *thd, const char *db, HA_CREATE_INFO *create)
Definition: sql_db.cc:515
bool mysql_create_db(THD *thd, const char *db, HA_CREATE_INFO *create)
Create a database.
Definition: sql_db.cc:329
bool get_default_db_collation(const dd::Schema &schema, const CHARSET_INFO **collation)
Definition: sql_db.cc:129
Definition: m_ctype.h:422
Struct to hold information about the table that should be created.
Definition: handler.h:3091
Definition: mysql_lex_string.h:39
Definition: mysql_lex_string.h:34
This structure is shared between different table objects.
Definition: table.h:691