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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.