Skip to main content

ReferencedPartitionSource

Trait ReferencedPartitionSource 

Source
pub trait ReferencedPartitionSource {
    // Required methods
    fn referenced_partitions(
        &self,
        table: &str,
    ) -> Result<Vec<ReferencedPartition>, SQLError>;
    fn declared_foreign_key_ids(
        &self,
        table: &str,
    ) -> Result<BTreeSet<[u8; 16]>, SQLError>;
}
Expand description

What derivation reads from the catalog.

Required Methods§

Source

fn referenced_partitions( &self, table: &str, ) -> Result<Vec<ReferencedPartition>, SQLError>

The partitions below table, each before its own partitions, with siblings in partition order; empty when table is not partitioned.

Source

fn declared_foreign_key_ids( &self, table: &str, ) -> Result<BTreeSet<[u8; 16]>, SQLError>

The object identities of the foreign keys table declares, which its partitions’ copies share.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§