pub struct Table { /* private fields */ }Implementations§
Source§impl Table
impl Table
pub fn new<S: Into<String>>( schema_name: Option<S>, name: S, export_date_column: Option<S>, lock_escalation: LockEscalation, no_export: bool, columns: Vec<Column>, keys: Vec<Key>, indexes: Vec<Key>, relations: Vec<Relation>, triggers: Vec<Trigger>, constraints: Vec<Constraint>, initial_data: Vec<InitialData>, options: Vec<TableOption>, aggregations: Vec<Aggregation>, ) -> Self
pub fn schema_name(&self) -> Option<&str>
pub fn name(&self) -> &str
pub fn export_date_column(&self) -> Option<&str>
pub fn lock_escalation(&self) -> LockEscalation
pub fn is_no_export(&self) -> bool
pub fn columns(&self) -> &[Column]
pub fn keys(&self) -> &[Key]
pub fn indexes(&self) -> &[Key]
pub fn relations(&self) -> &[Relation]
pub fn reverse_relations(&self) -> &[Relation]
pub fn triggers(&self) -> &[Trigger]
pub fn constraints(&self) -> &[Constraint]
pub fn initial_data(&self) -> &[InitialData]
pub fn options(&self) -> &[TableOption]
pub fn aggregations(&self) -> &[Aggregation]
pub fn column(&self, column_name: &str) -> &Column
pub fn primary_key(&self) -> Option<&Key>
pub fn has_column(&self, column_name: &str) -> bool
pub fn identity_column(&self) -> Option<&Column>
pub fn primary_key_columns(&self) -> Option<Vec<String>>
pub fn has_option(&self, option: TableOption) -> bool
pub fn has_column_constraints(&self, boolean_mode: BooleanMode) -> bool
pub fn columns_with_check_constraints( &self, boolean_mode: BooleanMode, ) -> Vec<Column>
pub fn column_relation(&self, column: &Column) -> Option<&Relation>
pub fn fully_qualified_table_name(&self) -> String
pub fn add_reverse_relation(&mut self, relation: Relation)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnsafeUnpin for Table
impl UnwindSafe for Table
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