Enum sqlparser_mysql::base::table_option::TableOption
source · 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 moresource§impl Debug for TableOption
impl Debug for TableOption
source§impl<'de> Deserialize<'de> for TableOption
impl<'de> Deserialize<'de> for TableOption
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Display for TableOption
impl Display for TableOption
source§impl Hash for TableOption
impl Hash for TableOption
source§impl PartialEq for TableOption
impl PartialEq for TableOption
source§fn eq(&self, other: &TableOption) -> bool
fn eq(&self, other: &TableOption) -> bool
self
and other
values to be equal, and is used
by ==
.