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: 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 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
sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
sourceยงunsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)