pub struct DefaultTableGenerator { /* private fields */ }Implementations§
Source§impl DefaultTableGenerator
impl DefaultTableGenerator
pub fn new( context: GeneratorContext, column_generator: Box<dyn ColumnGenerator>, key_generator: Box<dyn KeyGenerator>, column_constraint_generator: Box<dyn ColumnConstraintGenerator>, table_constraint_generator: Box<dyn TableConstraintGenerator>, index_generator: Box<dyn IndexGenerator>, ) -> Self
Sourcepub fn output_table_definition_with_extra(
&self,
table: &Table,
extra: Vec<String>,
)
pub fn output_table_definition_with_extra( &self, table: &Table, extra: Vec<String>, )
Same as output_table_definition, but appends extra definition clauses
(e.g. dialect-specific inline foreign key constraints) to the comma-separated
list before printing.
Trait Implementations§
Source§impl TableGenerator for DefaultTableGenerator
impl TableGenerator for DefaultTableGenerator
fn output_tables(&self)
fn output_table(&self, table: &Table)
fn output_table_drop(&self, table: &Table)
fn output_table_header(&self, table: &Table)
fn output_table_definition(&self, table: &Table)
fn output_indexes(&self, table: &Table)
fn output_initial_data(&self, table: &Table)
Auto Trait Implementations§
impl !RefUnwindSafe for DefaultTableGenerator
impl !Send for DefaultTableGenerator
impl !Sync for DefaultTableGenerator
impl !UnwindSafe for DefaultTableGenerator
impl Freeze for DefaultTableGenerator
impl Unpin for DefaultTableGenerator
impl UnsafeUnpin for DefaultTableGenerator
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