pub enum TableOption {
Show 30 variants
AutoextendSize(u64),
AutoIncrement(u64),
AvgRowLength(u64),
DefaultCharacterSet(String),
DefaultCharset(String),
Checksum(u8),
DefaultCollate(String),
Comment(String),
Compression(CompressionType),
Connection(String),
DataDirectory(String),
IndexDirectory(String),
DelayKeyWrite(u8),
Encryption(bool),
Engine(String),
EngineAttribute(String),
InsertMethod(InsertMethodType),
KeyBlockSize(u64),
MaxRows(u64),
MinRows(u64),
PackKeys(DefaultOrZeroOrOne),
Password(String),
RowFormat(RowFormatType),
StartTransaction,
SecondaryEngineAttribute(String),
StatsAutoRecalc(DefaultOrZeroOrOne),
StatsPersistent(DefaultOrZeroOrOne),
StatsSamplePages(u64),
Tablespace(String, Option<TablespaceType>),
Union(Vec<String>),
}
Expand description
table_option: { AUTOEXTEND_SIZE [=] value | AUTO_INCREMENT [=] value | AVG_ROW_LENGTH [=] value | [DEFAULT] CHARACTER SET [=] charset_name | CHECKSUM [=] {0 | 1} | [DEFAULT] COLLATE [=] collation_name | COMMENT [=] 'string' | COMPRESSION [=] {'ZLIB' | 'LZ4' | 'NONE'} | CONNECTION [=] 'connect_string' | {DATA | INDEX} DIRECTORY [=] 'absolute path to directory' | DELAY_KEY_WRITE [=] {0 | 1} | ENCRYPTION [=] {'Y' | 'N'} | ENGINE [=] engine_name | ENGINE_ATTRIBUTE [=] 'string' | INSERT_METHOD [=] { NO | FIRST | LAST } | KEY_BLOCK_SIZE [=] value | MAX_ROWS [=] value | MIN_ROWS [=] value | PACK_KEYS [=] {0 | 1 | DEFAULT} | PASSWORD [=] 'string' | ROW_FORMAT [=] {DEFAULT | DYNAMIC | FIXED | COMPRESSED | REDUNDANT | COMPACT} | SECONDARY_ENGINE_ATTRIBUTE [=] 'string' | STATS_AUTO_RECALC [=] {DEFAULT | 0 | 1} | STATS_PERSISTENT [=] {DEFAULT | 0 | 1} | STATS_SAMPLE_PAGES [=] value | TABLESPACE tablespace_name [STORAGE {DISK | MEMORY}] | UNION [=] (tbl_name[,tbl_name]...) }
Variants§
AutoextendSize(u64)
AutoIncrement(u64)
AvgRowLength(u64)
DefaultCharacterSet(String)
DefaultCharset(String)
Checksum(u8)
DefaultCollate(String)
Comment(String)
Compression(CompressionType)
Connection(String)
DataDirectory(String)
IndexDirectory(String)
DelayKeyWrite(u8)
Encryption(bool)
Engine(String)
EngineAttribute(String)
InsertMethod(InsertMethodType)
KeyBlockSize(u64)
MaxRows(u64)
MinRows(u64)
PackKeys(DefaultOrZeroOrOne)
Password(String)
RowFormat(RowFormatType)
StartTransaction
SecondaryEngineAttribute(String)
StatsAutoRecalc(DefaultOrZeroOrOne)
StatsPersistent(DefaultOrZeroOrOne)
StatsSamplePages(u64)
Tablespace(String, Option<TablespaceType>)
Union(Vec<String>)
Implementations§
Source§impl TableOption
impl TableOption
pub fn parse(i: &str) -> IResult<&str, TableOption, ParseSQLError<&str>>
pub fn format_list(list: &[TableOption]) -> String
Trait Implementations§
Source§impl Clone for TableOption
impl Clone for TableOption
Source§fn clone(&self) -> TableOption
fn clone(&self) -> TableOption
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more