pub struct TableBuilder { /* private fields */ }Expand description
TableBuilder holds an intermediate, mutable state for a table and produces an immutable Table.
Implementations§
Source§impl TableBuilder
impl TableBuilder
pub fn new<S: Into<String>>(schema_name: Option<S>, name: S) -> Self
pub fn export_date_column<S: Into<String>>(self, col: S) -> Self
pub fn lock_escalation(self, le: LockEscalation) -> Self
pub fn no_export(self, v: bool) -> Self
pub fn add_column(self, column: Column) -> Self
pub fn add_key(self, key: Key) -> Self
pub fn add_index(self, index: Key) -> Self
pub fn add_relation(self, relation: Relation) -> Self
pub fn add_trigger(self, trigger: Trigger) -> Self
pub fn add_constraint(self, constraint: Constraint) -> Self
pub fn add_initial_data(self, initial_data: InitialData) -> Self
pub fn add_option(self, o: TableOption) -> Self
pub fn add_aggregation(self, aggregation: Aggregation) -> Self
pub fn build(self) -> Table
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TableBuilder
impl RefUnwindSafe for TableBuilder
impl Send for TableBuilder
impl Sync for TableBuilder
impl Unpin for TableBuilder
impl UnsafeUnpin for TableBuilder
impl UnwindSafe for TableBuilder
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