#[repr(C)]
pub struct Table_scope_and_contents_source_pod_st {
Show 45 fields pub alter_table_convert_to_charset: *const charset_info_st, pub tabledef_version: LEX_CUSTRING, pub org_tabledef_version: LEX_CUSTRING, pub connect_string: LEX_CSTRING, pub comment: LEX_CSTRING, pub alias: LEX_CSTRING, pub org_storage_engine_name: LEX_CSTRING, pub new_storage_engine_name: LEX_CSTRING, pub password: *const c_char, pub tablespace: *const c_char, pub data_file_name: *const c_char, pub index_file_name: *const c_char, pub max_rows: ulonglong, pub min_rows: ulonglong, pub auto_increment_value: ulonglong, pub table_options: ulong, pub avg_row_length: ulong, pub used_fields: ulong, pub key_block_size: ulong, pub expression_length: ulong, pub field_check_constraints: ulong, pub stats_sample_pages: uint, pub null_bits: uint, pub options: uint, pub merge_insert_method: uint, pub extra_size: uint, pub db_type: *mut handlerton, pub row_type: Type, pub transactional: Type, pub storage_media: Type, pub page_checksum: Type, pub option_list: *mut engine_option_value, pub stats_auto_recalc: Type, pub varchar: bool, pub sequence: bool, pub check_constraint_list: *mut List, pub option_struct: *mut ha_table_option_struct, pub fields_option_struct: *mut *mut ha_field_option_struct, pub indexes_option_struct: *mut *mut ha_index_option_struct, pub table: *mut TABLE, pub pos_in_locked_tables: *mut TABLE_LIST, pub merge_list: *mut TABLE_LIST, pub mdl_ticket: *mut MDL_ticket, pub table_was_deleted: bool, pub seq_create_info: *mut sequence_definition,
}
Expand description

A helper struct for table DDL statements, e.g.: CREATE [OR REPLACE] [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name table_contents_source;

Represents a combinations of:

  1. The scope, i.e. TEMPORARY or not TEMPORARY
  2. The “table_contents_source” part of the table DDL statements, which can be initialized from either of these:
  • table_element_list … // Explicit definition (column and key list)
  • LIKE another_table_name … // Copy structure from another table
  • [AS] SELECT … // Copy structure from a subquery

Fields§

§alter_table_convert_to_charset: *const charset_info_st§tabledef_version: LEX_CUSTRING§org_tabledef_version: LEX_CUSTRING§connect_string: LEX_CSTRING§comment: LEX_CSTRING§alias: LEX_CSTRING§org_storage_engine_name: LEX_CSTRING§new_storage_engine_name: LEX_CSTRING§password: *const c_char§tablespace: *const c_char§data_file_name: *const c_char§index_file_name: *const c_char§max_rows: ulonglong§min_rows: ulonglong§auto_increment_value: ulonglong§table_options: ulong

HA_OPTION_ values

§avg_row_length: ulong§used_fields: ulong§key_block_size: ulong§expression_length: ulong§field_check_constraints: ulong§stats_sample_pages: uint§null_bits: uint§options: uint§merge_insert_method: uint§extra_size: uint§db_type: *mut handlerton§row_type: Type

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).

§transactional: Type§storage_media: Type

DEFAULT, DISK or MEMORY

§page_checksum: Type

If we have page_checksums

§option_list: *mut engine_option_value

list of table create options

§stats_auto_recalc: Type§varchar: bool

1 if table has a VARCHAR

§sequence: bool§check_constraint_list: *mut List§option_struct: *mut ha_table_option_struct

structure with parsed table options

§fields_option_struct: *mut *mut ha_field_option_struct

array of field option structures

§indexes_option_struct: *mut *mut ha_index_option_struct

array of index option structures

§table: *mut TABLE§pos_in_locked_tables: *mut TABLE_LIST§merge_list: *mut TABLE_LIST§mdl_ticket: *mut MDL_ticket§table_was_deleted: bool§seq_create_info: *mut sequence_definition

Trait Implementations§

source§

impl Debug for Table_scope_and_contents_source_pod_st

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.