pub struct SQLCreateTableBuilder {
pub name: String,
pub columns: Vec<SQLColumnDef>,
pub constraints: Vec<SQLTableConstraint>,
pub if_not_exists: bool,
pub temporary: bool,
}Fields§
§name: String§columns: Vec<SQLColumnDef>§constraints: Vec<SQLTableConstraint>§if_not_exists: bool§temporary: boolImplementations§
Source§impl SQLCreateTableBuilder
impl SQLCreateTableBuilder
pub fn new(name: impl Into<String>) -> Self
pub fn if_not_exists(self) -> Self
pub fn temporary(self) -> Self
pub fn column(self, col: SQLColumnDef) -> Self
pub fn constraint(self, c: SQLTableConstraint) -> Self
pub fn build(&self, dialect: &SQLDialect) -> String
Trait Implementations§
Source§impl Clone for SQLCreateTableBuilder
impl Clone for SQLCreateTableBuilder
Source§fn clone(&self) -> SQLCreateTableBuilder
fn clone(&self) -> SQLCreateTableBuilder
Returns a duplicate 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 SQLCreateTableBuilder
impl RefUnwindSafe for SQLCreateTableBuilder
impl Send for SQLCreateTableBuilder
impl Sync for SQLCreateTableBuilder
impl Unpin for SQLCreateTableBuilder
impl UnsafeUnpin for SQLCreateTableBuilder
impl UnwindSafe for SQLCreateTableBuilder
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