MySQL 9.0.0
Source Code Documentation
|
Struct to hold information about the table that should be created. More...
#include <handler.h>
Public Member Functions | |
void | init_create_options_from_share (const TABLE_SHARE *share, uint64_t used_fields) |
Fill HA_CREATE_INFO to be used by ALTER as well as upgrade code. More... | |
Struct to hold information about the table that should be created.
void HA_CREATE_INFO::init_create_options_from_share | ( | const TABLE_SHARE * | share, |
uint64_t | used_fields | ||
) |
Fill HA_CREATE_INFO to be used by ALTER as well as upgrade code.
This function separates code from mysql_prepare_alter_table() to be used by upgrade code as well to reduce code duplication. For ALTER code path, this lets new create options override the old ones.
[in] | share | TABLE_SHARE object |
[in] | used_fields | If a given create option is not flagged, old value be copied from the TABLE_SHARE. |
const char* HA_CREATE_INFO::alias {nullptr} |
ulonglong HA_CREATE_INFO::auto_increment_value {0} |
ulong HA_CREATE_INFO::avg_row_length {0} |
LEX_STRING HA_CREATE_INFO::comment {nullptr, 0} |
LEX_STRING HA_CREATE_INFO::compress {nullptr, 0} |
Algorithm (and possible options) to be used for InnoDB's transparent page compression.
If this attribute is set then it is hint to the storage engine to try and compress the data using the specified algorithm where possible. Note: this value is interpreted by the storage engine only. and ignored by the Server layer.
LEX_STRING HA_CREATE_INFO::connect_string {nullptr, 0} |
const char* HA_CREATE_INFO::data_file_name {nullptr} |
handlerton* HA_CREATE_INFO::db_type {nullptr} |
const CHARSET_INFO* HA_CREATE_INFO::default_table_charset {nullptr} |
LEX_STRING HA_CREATE_INFO::encrypt_type {nullptr, 0} |
This attribute is used for InnoDB's transparent page encryption.
If this attribute is set then it is hint to the storage engine to encrypt the data. Note: this value is interpreted by the storage engine only. and ignored by the Server layer.
LEX_CSTRING HA_CREATE_INFO::engine_attribute = NULL_CSTR |
const char* HA_CREATE_INFO::index_file_name {nullptr} |
std::uint32_t HA_CREATE_INFO::key_block_size {0} |
bool HA_CREATE_INFO::m_hidden {false} |
ulonglong HA_CREATE_INFO::m_implicit_tablespace_autoextend_size {0} |
bool HA_CREATE_INFO::m_implicit_tablespace_autoextend_size_change {true} |
bool HA_CREATE_INFO::m_transactional_ddl {false} |
ulonglong HA_CREATE_INFO::max_rows {0} |
uint HA_CREATE_INFO::merge_insert_method {0} |
SQL_I_List<Table_ref> HA_CREATE_INFO::merge_list |
ulonglong HA_CREATE_INFO::min_rows {0} |
uint HA_CREATE_INFO::null_bits {0} |
uint HA_CREATE_INFO::options {0} |
const char* HA_CREATE_INFO::password {nullptr} |
enum row_type HA_CREATE_INFO::row_type = ROW_TYPE_DEFAULT |
Row type of the table definition.
Defaults to ROW_TYPE_DEFAULT for all non-ALTER statements. For ALTER TABLE defaults to ROW_TYPE_NOT_USED (means "keep the current").
Can be changed either explicitly by the parser. If nothing specified inherits the value of the original table (if present).
bool HA_CREATE_INFO::schema_read_only {false} |
LEX_CSTRING HA_CREATE_INFO::secondary_engine {nullptr, 0} |
Secondary engine of the table.
Is nullptr if no secondary engine defined.
LEX_CSTRING HA_CREATE_INFO::secondary_engine_attribute = NULL_CSTR |
bool HA_CREATE_INFO::secondary_load {false} |
Secondary engine load status.
enum_stats_auto_recalc HA_CREATE_INFO::stats_auto_recalc {HA_STATS_AUTO_RECALC_DEFAULT} |
uint HA_CREATE_INFO::stats_sample_pages {0} |
ha_storage_media HA_CREATE_INFO::storage_media {HA_SM_DEFAULT} |
const CHARSET_INFO* HA_CREATE_INFO::table_charset {nullptr} |
ulong HA_CREATE_INFO::table_options {0} |
const char* HA_CREATE_INFO::tablespace {nullptr} |
uint64_t HA_CREATE_INFO::used_fields {0} |