Skip to main content

ReferentialDeferrals

Trait ReferentialDeferrals 

Source
pub trait ReferentialDeferrals {
    // Required methods
    fn defer_foreign_key_check(
        &self,
        constraint_table: &str,
        firing_table: &str,
        row_table: &str,
        doc_id: DocId,
        foreign_key: &ForeignKey,
        derived: Option<&ReferencedPartitionConstraint>,
    ) -> Result<(), SQLError>;
    fn defer_foreign_key_parent_event(
        &self,
        constraint_table: &str,
        firing_table: &str,
        foreign_key: &ForeignKey,
        derived: Option<&ReferencedPartitionConstraint>,
    ) -> Result<(), SQLError>;
}
Expand description

The deferral of the checks a change to a referenced row fires, under the constraint derived names when the foreign key derives one on the firing partition.

Required Methods§

Source

fn defer_foreign_key_check( &self, constraint_table: &str, firing_table: &str, row_table: &str, doc_id: DocId, foreign_key: &ForeignKey, derived: Option<&ReferencedPartitionConstraint>, ) -> Result<(), SQLError>

Source

fn defer_foreign_key_parent_event( &self, constraint_table: &str, firing_table: &str, foreign_key: &ForeignKey, derived: Option<&ReferencedPartitionConstraint>, ) -> Result<(), SQLError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§