Enum sea_query::table::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: 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 more