Skip to main content

RelationFilterMeta

Trait RelationFilterMeta 

Source
pub trait RelationFilterMeta {
    const PARENT_TABLE: &'static str;
    const PARENT_PK: &'static str;
    const CHILD_TABLE: &'static str;
    const CHILD_FK: &'static str;
}
Expand description

Static metadata for one parent→child relation, used when lowering relation filters to EXISTS / NOT EXISTS subqueries.

Phase 2 codegen emits one impl per relation declared in the schema. Hand-rolled callers can implement this trait themselves.

Distinct from crate::relations::RelationMeta, which carries runtime-loader metadata.

Required Associated Constants§

Source

const PARENT_TABLE: &'static str

Parent SQL table name.

Source

const PARENT_PK: &'static str

Parent primary-key column name.

Source

const CHILD_TABLE: &'static str

Child SQL table name.

Source

const CHILD_FK: &'static str

Child foreign-key column name pointing back at the parent.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§