23#ifndef SQL_TABLESPACE_INCLUDED
24#define SQL_TABLESPACE_INCLUDED
91 const char *tablespace_name,
355 const LEX_STRING &undofile_name = {
nullptr, 0});
Execution class for ALTER TABLESPACE ... ADD DATAFILE ...
Definition: sql_tablespace.h:191
const LEX_STRING m_datafile_name
Definition: sql_tablespace.h:192
Sql_cmd_alter_tablespace_add_datafile(const LEX_STRING &tsname, const LEX_STRING &dfname, const Tablespace_options *options)
Creates execution class instance for add datafile statement.
Definition: sql_tablespace.cc:1051
bool execute(THD *) override
Execute this SQL statement.
Definition: sql_tablespace.cc:1056
Execution class for ALTER TABLESPACE ... DROP DATAFILE ...
Definition: sql_tablespace.h:213
Sql_cmd_alter_tablespace_drop_datafile(const LEX_STRING &tsname, const LEX_STRING &dfname, const Tablespace_options *options)
Creates execution class instance for drop datafile statement.
Definition: sql_tablespace.cc:1142
const LEX_STRING m_datafile_name
Definition: sql_tablespace.h:214
bool execute(THD *) override
Execute this SQL statement.
Definition: sql_tablespace.cc:1147
Execution class for ALTER TABLESPACE ... RENAME TO ...
Definition: sql_tablespace.h:235
bool execute(THD *) override
Execute this SQL statement.
Definition: sql_tablespace.cc:1230
const LEX_STRING m_new_name
Definition: sql_tablespace.h:236
Sql_cmd_alter_tablespace_rename(const LEX_STRING &old_name, const LEX_STRING &new_name)
Creates execution class instance for rename statement.
Definition: sql_tablespace.cc:1226
Execution class for ALTER TABLESPACE ... tablespace_options.
Definition: sql_tablespace.h:171
Sql_cmd_alter_tablespace(const LEX_STRING &ts_name, const Tablespace_options *options)
Creates execution class instance for plain alter tablespace (modifying options).
Definition: sql_tablespace.cc:901
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_tablespace.cc:905
Execution class for ALTER UNDO TABLESPACE.
Definition: sql_tablespace.h:280
const Tablespace_options * m_options
Definition: sql_tablespace.h:285
const LEX_STRING m_datafile_name
Definition: sql_tablespace.h:283
const ts_alter_tablespace_type m_at_type
Definition: sql_tablespace.h:284
const LEX_STRING m_undo_tablespace_name
Definition: sql_tablespace.h:282
bool execute(THD *) override
Execute this SQL statement.
Definition: sql_tablespace.cc:1526
Sql_cmd_alter_undo_tablespace(const ts_command_type cmd_type, const LEX_STRING &utsname, const LEX_STRING &dfname, const Tablespace_options *options, ts_alter_tablespace_type at_type=TS_ALTER_TABLESPACE_TYPE_NOT_DEFINED)
Creates execution class instance for undo tablespace statements.
Definition: sql_tablespace.cc:1511
const ts_command_type m_cmd
Definition: sql_tablespace.h:281
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_tablespace.cc:1605
Execution class for CREATE TABLESPACE ... ADD DATAFILE ...
Definition: sql_tablespace.h:129
bool m_auto_generate_datafile_name
Definition: sql_tablespace.h:132
Sql_cmd_create_tablespace(const LEX_STRING &tsname, const LEX_STRING &dfname, const LEX_STRING &lfgname, const Tablespace_options *options)
Creates execution class instance for create tablespace statement.
Definition: sql_tablespace.cc:443
const LEX_STRING m_datafile_name
Definition: sql_tablespace.h:130
const LEX_STRING m_logfile_group_name
Definition: sql_tablespace.h:131
bool execute(THD *) override
Execute this SQL statement.
Definition: sql_tablespace.cc:451
Execution class for CREATE UNDO TABLESPACE.
Definition: sql_tablespace.h:253
const ts_command_type m_cmd
Definition: sql_tablespace.h:254
const LEX_STRING m_datafile_name
Definition: sql_tablespace.h:256
const Tablespace_options * m_options
Definition: sql_tablespace.h:257
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_tablespace.cc:1507
Sql_cmd_create_undo_tablespace(const ts_command_type cmd_type, const LEX_STRING &utsname, const LEX_STRING &dfname, const Tablespace_options *options)
Creates execution class instance for undo tablespace statements.
Definition: sql_tablespace.cc:1371
bool execute(THD *) override
Execute this SQL statement.
Definition: sql_tablespace.cc:1379
const LEX_STRING m_undo_tablespace_name
Definition: sql_tablespace.h:255
Execution class for DROP TABLESPACE ...
Definition: sql_tablespace.h:155
bool execute(THD *) override
Execute this SQL statement.
Definition: sql_tablespace.cc:652
Sql_cmd_drop_tablespace(const LEX_STRING &tsname, const Tablespace_options *options)
Creates execution class instance for drop tablespace statement.
Definition: sql_tablespace.cc:648
Execution class for DROP UNDO TABLESPACE.
Definition: sql_tablespace.h:309
const LEX_STRING m_datafile_name
Definition: sql_tablespace.h:312
const Tablespace_options * m_options
Definition: sql_tablespace.h:313
const ts_command_type m_cmd
Definition: sql_tablespace.h:310
bool execute(THD *) override
Execute this SQL statement.
Definition: sql_tablespace.cc:1617
Sql_cmd_drop_undo_tablespace(const ts_command_type cmd_type, const LEX_STRING &utsname, const LEX_STRING &dfname, const Tablespace_options *options)
Creates execution class instance for drop undo tablespace statements.
Definition: sql_tablespace.cc:1609
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_tablespace.cc:1708
const LEX_STRING m_undo_tablespace_name
Definition: sql_tablespace.h:311
Execution class for CREATE/DROP/ALTER LOGFILE GROUP ...
Definition: sql_tablespace.h:337
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_tablespace.cc:1720
const Tablespace_options * m_options
Definition: sql_tablespace.h:341
Sql_cmd_logfile_group(const ts_command_type cmd_type, const LEX_STRING &logfile_group_name, const Tablespace_options *options, const LEX_STRING &undofile_name={nullptr, 0})
Creates execution class instance for logfile group statements.
Definition: sql_tablespace.cc:1712
const LEX_STRING m_undofile_name
Definition: sql_tablespace.h:340
const ts_command_type m_cmd
Definition: sql_tablespace.h:338
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_tablespace.cc:1759
const LEX_STRING m_logfile_group_name
Definition: sql_tablespace.h:339
Base class for tablespace execution classes including CREATE/ALTER/DROP TABLESPACE and LOGFILE GROUP ...
Definition: sql_tablespace.h:99
const LEX_STRING m_tablespace_name
Definition: sql_tablespace.h:101
const Tablespace_options get_options() const
Return the Tablespace_options for this object.
Definition: sql_tablespace.h:121
const Tablespace_options * m_options
Definition: sql_tablespace.h:102
Sql_cmd_tablespace(const LEX_STRING &name, const Tablespace_options *options)
Creates shared base object.
Definition: sql_tablespace.cc:432
enum_sql_command sql_command_code() const final
Provide access to the command code enum value.
Definition: sql_tablespace.cc:437
Representation of an SQL command.
Definition: sql_cmd.h:64
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:33
constexpr const LEX_CSTRING NULL_CSTR
Definition: lex_string.h:46
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
enum_sql_command
Definition: my_sqlcommand.h:45
Definition: options.cc:48
#define UNDEF_NODEGROUP
Definition: handler.h:826
ts_command_type
Definition: handler.h:829
ts_alter_tablespace_type
Definition: handler.h:844
@ TS_ALTER_TABLESPACE_TYPE_NOT_DEFINED
Definition: handler.h:845
Representation of an SQL command.
bool validate_tablespace_name_length(const char *tablespace_name)
Check if tablespace name has valid length.
Definition: sql_tablespace.cc:118
bool validate_tablespace_name(ts_command_type ts_cmd, const char *tablespace_name, const handlerton *engine)
Check if a tablespace name is valid.
Definition: sql_tablespace.cc:124
case opt name
Definition: sslopt-case.h:32
Definition: mysql_lex_string.h:39
Definition: mysql_lex_string.h:34
Structure used by parser to store options for tablespace statements and pass them on to Execution cla...
Definition: sql_tablespace.h:42
ulonglong redo_buffer_size
Definition: sql_tablespace.h:45
ulonglong undo_buffer_size
Definition: sql_tablespace.h:44
LEX_CSTRING engine_attribute
Definition: sql_tablespace.h:56
ulonglong file_block_size
Definition: sql_tablespace.h:49
std::optional< ulonglong > autoextend_size
Definition: sql_tablespace.h:47
uint nodegroup_id
Definition: sql_tablespace.h:50
LEX_STRING ts_comment
Definition: sql_tablespace.h:52
LEX_STRING encryption
Definition: sql_tablespace.h:54
ulonglong max_size
Definition: sql_tablespace.h:48
LEX_CSTRING engine_name
Definition: sql_tablespace.h:53
ulonglong initial_size
Definition: sql_tablespace.h:46
bool wait_until_completed
Definition: sql_tablespace.h:51
ulonglong extent_size
Definition: sql_tablespace.h:43
handlerton is a singleton structure - one instance per storage engine - to provide access to storage ...
Definition: handler.h:2594
unsigned int uint
Definition: uca9-dump.cc:74