pub struct SchemaBuilder { /* private fields */ }Implementations§
Source§impl SchemaBuilder
impl SchemaBuilder
pub fn new(table_name: &str) -> Self
pub fn add_column(self, column: ColumnDef) -> Self
pub fn add_index(self, index: IndexDef) -> Self
pub fn add_foreign_key(self, fk: ForeignKeyDef) -> Self
pub fn if_not_exists(self, value: bool) -> Self
pub fn build(&self, db_type: DbType) -> Result<String, DbError>
Auto Trait Implementations§
impl Freeze for SchemaBuilder
impl RefUnwindSafe for SchemaBuilder
impl Send for SchemaBuilder
impl Sync for SchemaBuilder
impl Unpin for SchemaBuilder
impl UnsafeUnpin for SchemaBuilder
impl UnwindSafe for SchemaBuilder
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