Trait rorm_sql::create_table::CreateTable
source · pub trait CreateTable<'until_build, 'post_build> {
// Required methods
fn add_column(
self,
column: CreateColumnImpl<'until_build, 'post_build>
) -> Self;
fn if_not_exists(self) -> Self;
fn build(self) -> Result<Vec<(String, Vec<Value<'post_build>>)>, Error>;
}
Expand description
The trait representing a create table builder
Required Methods§
sourcefn add_column(self, column: CreateColumnImpl<'until_build, 'post_build>) -> Self
fn add_column(self, column: CreateColumnImpl<'until_build, 'post_build>) -> Self
Add a column to the table.
sourcefn if_not_exists(self) -> Self
fn if_not_exists(self) -> Self
Sets the IF NOT EXISTS trait on the table