MySQL 8.0.40
Source Code Documentation
st_alter_tablespace Class Reference

Legacy struct for passing tablespace information to SEs. More...

#include <handler.h>

Public Member Functions

bool is_tablespace_command ()
 
 st_alter_tablespace (const char *tablespace, const char *logfile_group, ts_command_type cmd, enum ts_alter_tablespace_type alter_tablespace_cmd, const char *datafile, const char *undofile, const Tablespace_options &opts)
 Proper constructor even for all-public class simplifies initialization and allows members to be const. More...
 

Public Attributes

const char * tablespace_name = nullptr
 
const char * logfile_group_name = nullptr
 
ts_command_type ts_cmd_type = TS_CMD_NOT_DEFINED
 
enum ts_alter_tablespace_type ts_alter_tablespace_type
 
const char * data_file_name = nullptr
 
const char * undo_file_name = nullptr
 
ulonglong extent_size = 1024 * 1024
 
ulonglong undo_buffer_size = 8 * 1024 * 1024
 
ulonglong redo_buffer_size = 8 * 1024 * 1024
 
ulonglong initial_size = 128 * 1024 * 1024
 
std::optional< ulonglongautoextend_size
 
ulonglong max_size = 0
 
ulonglong file_block_size = 0
 
uint nodegroup_id = UNDEF_NODEGROUP
 
bool wait_until_completed = true
 
const char * ts_comment = nullptr
 
const char * encryption = nullptr
 

Detailed Description

Legacy struct for passing tablespace information to SEs.

FUTURE: Pass all info through dd objects

Constructor & Destructor Documentation

◆ st_alter_tablespace()

st_alter_tablespace::st_alter_tablespace ( const char *  tablespace,
const char *  logfile_group,
ts_command_type  cmd,
enum ts_alter_tablespace_type  alter_tablespace_cmd,
const char *  datafile,
const char *  undofile,
const Tablespace_options opts 
)

Proper constructor even for all-public class simplifies initialization and allows members to be const.

FUTURE: With constructor all members can be made const, and do not need default initializers.

Parameters
tablespacename of tabelspace (nullptr for logfile group statements)
logfile_groupname of logfile group or nullptr
cmdmain statement type
alter_tablespace_cmdsubcommand type for ALTER TABLESPACE
datafiletablespace file for CREATE and ALTER ... ADD ...
undofileonly applies to logfile group statements. nullptr otherwise.
optsoptions provided by parser

Member Function Documentation

◆ is_tablespace_command()

bool st_alter_tablespace::is_tablespace_command ( )
inline

Member Data Documentation

◆ autoextend_size

std::optional<ulonglong> st_alter_tablespace::autoextend_size

◆ data_file_name

const char* st_alter_tablespace::data_file_name = nullptr

◆ encryption

const char* st_alter_tablespace::encryption = nullptr

◆ extent_size

ulonglong st_alter_tablespace::extent_size = 1024 * 1024

◆ file_block_size

ulonglong st_alter_tablespace::file_block_size = 0

◆ initial_size

ulonglong st_alter_tablespace::initial_size = 128 * 1024 * 1024

◆ logfile_group_name

const char* st_alter_tablespace::logfile_group_name = nullptr

◆ max_size

ulonglong st_alter_tablespace::max_size = 0

◆ nodegroup_id

uint st_alter_tablespace::nodegroup_id = UNDEF_NODEGROUP

◆ redo_buffer_size

ulonglong st_alter_tablespace::redo_buffer_size = 8 * 1024 * 1024

◆ tablespace_name

const char* st_alter_tablespace::tablespace_name = nullptr

◆ ts_alter_tablespace_type

enum ts_alter_tablespace_type st_alter_tablespace::ts_alter_tablespace_type
Initial value:
=
@ TS_ALTER_TABLESPACE_TYPE_NOT_DEFINED
Definition: handler.h:847

◆ ts_cmd_type

ts_command_type st_alter_tablespace::ts_cmd_type = TS_CMD_NOT_DEFINED

◆ ts_comment

const char* st_alter_tablespace::ts_comment = nullptr

◆ undo_buffer_size

ulonglong st_alter_tablespace::undo_buffer_size = 8 * 1024 * 1024

◆ undo_file_name

const char* st_alter_tablespace::undo_file_name = nullptr

◆ wait_until_completed

bool st_alter_tablespace::wait_until_completed = true

The documentation for this class was generated from the following files: