Enum migration::TableStatement
source · pub enum TableStatement {
Create(TableCreateStatement),
Alter(TableAlterStatement),
Drop(TableDropStatement),
Rename(TableRenameStatement),
Truncate(TableTruncateStatement),
}
Expand description
All available types of table statement
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 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>(&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 copy 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