24#ifndef SQL_TABLESPACE_INCLUDED
25#define SQL_TABLESPACE_INCLUDED
92 const char *tablespace_name,
356 const LEX_STRING &undofile_name = {
nullptr, 0});
Execution class for ALTER TABLESPACE ... ADD DATAFILE ...
Definition: sql_tablespace.h:192
const LEX_STRING m_datafile_name
Definition: sql_tablespace.h:193
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:1052
bool execute(THD *) override
Execute this SQL statement.
Definition: sql_tablespace.cc:1057
Execution class for ALTER TABLESPACE ... DROP DATAFILE ...
Definition: sql_tablespace.h:214
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:1143
const LEX_STRING m_datafile_name
Definition: sql_tablespace.h:215
bool execute(THD *) override
Execute this SQL statement.
Definition: sql_tablespace.cc:1148
Execution class for ALTER TABLESPACE ... RENAME TO ...
Definition: sql_tablespace.h:236
bool execute(THD *) override
Execute this SQL statement.
Definition: sql_tablespace.cc:1231
const LEX_STRING m_new_name
Definition: sql_tablespace.h:237
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:1227
Execution class for ALTER TABLESPACE ... tablespace_options.
Definition: sql_tablespace.h:172
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:902
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_tablespace.cc:906
Execution class for ALTER UNDO TABLESPACE.
Definition: sql_tablespace.h:281
const Tablespace_options * m_options
Definition: sql_tablespace.h:286
const LEX_STRING m_datafile_name
Definition: sql_tablespace.h:284
const ts_alter_tablespace_type m_at_type
Definition: sql_tablespace.h:285
const LEX_STRING m_undo_tablespace_name
Definition: sql_tablespace.h:283
bool execute(THD *) override
Execute this SQL statement.
Definition: sql_tablespace.cc:1527
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:1512
const ts_command_type m_cmd
Definition: sql_tablespace.h:282
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_tablespace.cc:1606
Execution class for CREATE TABLESPACE ... ADD DATAFILE ...
Definition: sql_tablespace.h:130
bool m_auto_generate_datafile_name
Definition: sql_tablespace.h:133
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:444
const LEX_STRING m_datafile_name
Definition: sql_tablespace.h:131
const LEX_STRING m_logfile_group_name
Definition: sql_tablespace.h:132
bool execute(THD *) override
Execute this SQL statement.
Definition: sql_tablespace.cc:452
Execution class for CREATE UNDO TABLESPACE.
Definition: sql_tablespace.h:254
const ts_command_type m_cmd
Definition: sql_tablespace.h:255
const LEX_STRING m_datafile_name
Definition: sql_tablespace.h:257
const Tablespace_options * m_options
Definition: sql_tablespace.h:258
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_tablespace.cc:1508
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:1372
bool execute(THD *) override
Execute this SQL statement.
Definition: sql_tablespace.cc:1380
const LEX_STRING m_undo_tablespace_name
Definition: sql_tablespace.h:256
Execution class for DROP TABLESPACE ...
Definition: sql_tablespace.h:156
bool execute(THD *) override
Execute this SQL statement.
Definition: sql_tablespace.cc:653
Sql_cmd_drop_tablespace(const LEX_STRING &tsname, const Tablespace_options *options)
Creates execution class instance for drop tablespace statement.
Definition: sql_tablespace.cc:649
Execution class for DROP UNDO TABLESPACE.
Definition: sql_tablespace.h:310
const LEX_STRING m_datafile_name
Definition: sql_tablespace.h:313
const Tablespace_options * m_options
Definition: sql_tablespace.h:314
const ts_command_type m_cmd
Definition: sql_tablespace.h:311
bool execute(THD *) override
Execute this SQL statement.
Definition: sql_tablespace.cc:1618
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:1610
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_tablespace.cc:1709
const LEX_STRING m_undo_tablespace_name
Definition: sql_tablespace.h:312
Execution class for CREATE/DROP/ALTER LOGFILE GROUP ...
Definition: sql_tablespace.h:338
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_tablespace.cc:1721
const Tablespace_options * m_options
Definition: sql_tablespace.h:342
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:1713
const LEX_STRING m_undofile_name
Definition: sql_tablespace.h:341
const ts_command_type m_cmd
Definition: sql_tablespace.h:339
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_tablespace.cc:1760
const LEX_STRING m_logfile_group_name
Definition: sql_tablespace.h:340
Base class for tablespace execution classes including CREATE/ALTER/DROP TABLESPACE and LOGFILE GROUP ...
Definition: sql_tablespace.h:100
const LEX_STRING m_tablespace_name
Definition: sql_tablespace.h:102
const Tablespace_options get_options() const
Return the Tablespace_options for this object.
Definition: sql_tablespace.h:122
const Tablespace_options * m_options
Definition: sql_tablespace.h:103
Sql_cmd_tablespace(const LEX_STRING &name, const Tablespace_options *options)
Creates shared base object.
Definition: sql_tablespace.cc:433
enum_sql_command sql_command_code() const final
Provide access to the command code enum value.
Definition: sql_tablespace.cc:438
Representation of an SQL command.
Definition: sql_cmd.h:65
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
constexpr const LEX_CSTRING NULL_CSTR
Definition: lex_string.h:47
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
enum_sql_command
Definition: my_sqlcommand.h:46
Definition: options.cc:49
#define UNDEF_NODEGROUP
Definition: handler.h:828
ts_command_type
Definition: handler.h:831
ts_alter_tablespace_type
Definition: handler.h:846
@ TS_ALTER_TABLESPACE_TYPE_NOT_DEFINED
Definition: handler.h:847
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:119
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:125
case opt name
Definition: sslopt-case.h:33
Definition: mysql_lex_string.h:40
Definition: mysql_lex_string.h:35
Structure used by parser to store options for tablespace statements and pass them on to Execution cla...
Definition: sql_tablespace.h:43
ulonglong redo_buffer_size
Definition: sql_tablespace.h:46
ulonglong undo_buffer_size
Definition: sql_tablespace.h:45
LEX_CSTRING engine_attribute
Definition: sql_tablespace.h:57
ulonglong file_block_size
Definition: sql_tablespace.h:50
std::optional< ulonglong > autoextend_size
Definition: sql_tablespace.h:48
uint nodegroup_id
Definition: sql_tablespace.h:51
LEX_STRING ts_comment
Definition: sql_tablespace.h:53
LEX_STRING encryption
Definition: sql_tablespace.h:55
ulonglong max_size
Definition: sql_tablespace.h:49
LEX_CSTRING engine_name
Definition: sql_tablespace.h:54
ulonglong initial_size
Definition: sql_tablespace.h:47
bool wait_until_completed
Definition: sql_tablespace.h:52
ulonglong extent_size
Definition: sql_tablespace.h:44
handlerton is a singleton structure - one instance per storage engine - to provide access to storage ...
Definition: handler.h:2622
unsigned int uint
Definition: uca9-dump.cc:75