Skip to main content

partition_constraint_accepts_document

Function partition_constraint_accepts_document 

Source
pub fn partition_constraint_accepts_document(
    context: &PartitionContext<'_>,
    table: &str,
    spec: &PartitionSpec,
    bound: &PartitionBound,
    document: &ResultRow,
) -> Result<bool, SQLError>
Expand description

Evaluate a retained detached-partition CHECK without requiring a live parent edge. This is also the exact predicate used for prospective ATTACH row scans.