#[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: SchemaBuilder>(&self, table_builder: T) -> String
pub fn build<T: SchemaBuilder>(&self, table_builder: T) -> String
Build corresponding SQL statement for certain database backend and return SQL string
Sourcepub fn build_any(&self, table_builder: &dyn SchemaBuilder) -> String
pub fn build_any(&self, table_builder: &dyn SchemaBuilder) -> String
Build corresponding SQL statement for certain database backend and return SQL string
Sourcepub fn to_string<T: SchemaBuilder>(&self, table_builder: T) -> String
pub fn to_string<T: SchemaBuilder>(&self, table_builder: T) -> String
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 · 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 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