Struct sql::grammar::statement::CreateTable
[−]
[src]
pub struct CreateTable {
// some fields omitted
}A CREATE TABLE statement.
Methods
impl CreateTable[src]
fn new<T: ToString>(name: T) -> Self
Create a CREATE TABLE statement.
fn name<T: ToString>(self, name: T) -> Self
Set the name.
fn if_not_exists(self) -> Self
Mark that it should be applied only if the table does not exist.
fn column(self, name: Column) -> Self
Add a column.
fn columns(self, names: &[Column]) -> Self
Add multiple columns.
Trait Implementations
impl Default for CreateTable[src]
fn default() -> CreateTable
Returns the "default value" for a type. Read more
impl Debug for CreateTable[src]
impl Clone for CreateTable[src]
fn clone(&self) -> CreateTable
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more