Skip to main content

Module constraint_metadata

Module constraint_metadata 

Source
Expand description

Normalize durable constraint names and identities through a caller-owned identity allocator.

Modules§

identity
Allocate constraint incarnations and preserve legacy NOT NULL OIDs during initial migration.

Structs§

ConstraintNameScope
Explicit names share their relation’s event namespace; automatic names also avoid every constraint in the containing schema.

Enums§

CatalogOidClass
ConstraintMetadataError

Traits§

CatalogObjectAllocator
Declaration normalization requests identities from its caller. Execution reserves public addresses; isolated declarations and initial migration can derive candidates before validating the complete catalog.

Functions§

foreign_key_provenance_matches
Attachment provenance tracks one local row even after its name or enforcement flags change. Legacy entries may still lack the independent catalog identity.
foreign_keys_match_without_object_id
materialize_column_key_constraints
materialize_constraint_metadata
materialize_constraint_metadata_with_names
Validate explicit local names before excluding schema-wide names from automatic selection.
synchronize_partition_inherited_foreign_key_ids

Type Aliases§

CatalogIdentityAllocator
ConstraintMetadataResult