pub fn constraint_backing_pair(
def: &ConstraintDef,
) -> Result<Option<(IndexDef, IndexDetailSpec)>>Expand description
The backing pair an index-backed constraint owns under its own name:
the catalog index row (the legacy-encoded first property, so a
constraint’s backing index and a user index on the same pair coexist
as distinct rows) and the theater detail that materializes the row’s
seek postings. None for every kind that owns no backing index. The
pair’s one construction — the CREATE CONSTRAINT path and the
derived-migration install both build it here, so the backing rule
lives beside its encoding. The composite detail carries the
constraint’s full property list (CIP-11/46/62), so an equality seek
on any constrained property is served; only the legacy row stays
first-property-only.
§Errors
relate_core::Error::storage for an index-backed definition whose
property list is empty — a malformed backing row no encoder can
spell, never a silent default.