TableOption

Enum TableOption 

Source
pub enum TableOption {
Show 16 variants KeyBlockSize(Option<i64>), Connection(Option<String>), InsertMethod(InsertMethod), Union(Option<Vec<String>>), RowFormat(Option<RowFormat>), DelayKeyWrite(Option<i64>), TableChecksum(Option<i64>), StatsSamplePages(Option<i64>), Password(Option<String>), AvgRowLength(Option<i64>), MinRows(Option<i64>), MaxRows(Option<i64>), SecondaryEngine(Option<String>), Collate(Option<String>), Comment(Option<String>), Storage(StorageFormat),
}
Expand description

MySQL table options for CREATE TABLE

Variants§

§

KeyBlockSize(Option<i64>)

KEY_BLOCK_SIZE [=] value

§

Connection(Option<String>)

CONNECTION [=] ‘string’

§

InsertMethod(InsertMethod)

INSERT_METHOD = {FIRST | LAST | NO}

§

Union(Option<Vec<String>>)

UNION [=] (col1, col2, …)

§

RowFormat(Option<RowFormat>)

ROW_FORMAT [=] {DEFAULT | DYNAMIC | FIXED | COMPRESSED | REDUNDANT | COMPACT}

§

DelayKeyWrite(Option<i64>)

DELAY_KEY_WRITE [=] value

§

TableChecksum(Option<i64>)

TABLE_CHECKSUM [=] value | CHECKSUM [=] value

§

StatsSamplePages(Option<i64>)

STATS_SAMPLE_PAGES [=] value

§

Password(Option<String>)

PASSWORD [=] ‘string’

§

AvgRowLength(Option<i64>)

AVG_ROW_LENGTH [=] value

§

MinRows(Option<i64>)

MIN_ROWS [=] value

§

MaxRows(Option<i64>)

MAX_ROWS [=] value

§

SecondaryEngine(Option<String>)

SECONDARY_ENGINE [=] identifier | NULL

§

Collate(Option<String>)

COLLATE [=] collation_name

§

Comment(Option<String>)

COMMENT [=] ‘string’

§

Storage(StorageFormat)

STORAGE [=] {ROW | COLUMNAR} VibeSQL extension for native columnar storage

Trait Implementations§

Source§

impl Clone for TableOption

Source§

fn clone(&self) -> TableOption

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TableOption

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for TableOption

Source§

fn eq(&self, other: &TableOption) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for TableOption

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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>,

Source§

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.