pub struct DefaultRelationGenerator { /* private fields */ }Implementations§
Source§impl DefaultRelationGenerator
impl DefaultRelationGenerator
pub fn new(context: GeneratorContext) -> Self
pub fn context(&self) -> &GeneratorContext
Sourcepub fn relation_constraint_name(
&self,
table: &Table,
relation_index: usize,
) -> String
pub fn relation_constraint_name( &self, table: &Table, relation_index: usize, ) -> String
Builds the constraint name for the given relation, truncating the table-name portion so the identifier stays within the target database’s max key name length.
pub fn relation_operation_type(&self, relation_type: RelationType) -> &str
Trait Implementations§
Source§impl RelationGenerator for DefaultRelationGenerator
impl RelationGenerator for DefaultRelationGenerator
fn output_relations(&self)
Auto Trait Implementations§
impl !RefUnwindSafe for DefaultRelationGenerator
impl !Send for DefaultRelationGenerator
impl !Sync for DefaultRelationGenerator
impl !UnwindSafe for DefaultRelationGenerator
impl Freeze for DefaultRelationGenerator
impl Unpin for DefaultRelationGenerator
impl UnsafeUnpin for DefaultRelationGenerator
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