#[non_exhaustive]pub enum TableStatement {
Create(TableCreateStatement),
Alter(TableAlterStatement),
Drop(TableDropStatement),
Rename(TableRenameStatement),
Truncate(TableTruncateStatement),
}Expand description
All available types of table statement
Variants (Non-exhaustive)ยง
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Create(TableCreateStatement)
Alter(TableAlterStatement)
Drop(TableDropStatement)
Rename(TableRenameStatement)
Truncate(TableTruncateStatement)
Implementationsยง
Sourceยงimpl TableStatement
impl TableStatement
Sourcepub fn build<T>(&self, table_builder: T) -> Stringwhere
T: SchemaBuilder,
pub fn build<T>(&self, table_builder: T) -> Stringwhere
T: SchemaBuilder,
Build corresponding SQL statement for certain database backend and return SQL string
Sourcepub fn to_string<T>(&self, table_builder: T) -> Stringwhere
T: SchemaBuilder,
pub fn to_string<T>(&self, table_builder: T) -> Stringwhere
T: SchemaBuilder,
Build corresponding SQL statement for certain database backend and return SQL string
Trait Implementationsยง
Sourceยงimpl Clone for TableStatement
impl Clone for TableStatement
Sourceยงfn clone(&self) -> TableStatement
fn clone(&self) -> TableStatement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementationsยง
impl Freeze for TableStatement
impl RefUnwindSafe for TableStatement
impl Send for TableStatement
impl Sync for TableStatement
impl Unpin for TableStatement
impl UnsafeUnpin for TableStatement
impl UnwindSafe for TableStatement
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more