Skip to main content

declared_relationships_schema_matches

Function declared_relationships_schema_matches 

Source
pub fn declared_relationships_schema_matches(table_info: &TableInfo) -> bool
Expand description

Whether an existing declared-edge table still matches the canonical definition (build_declared_relationships_expr): columns, time index, primary key, engine, and merge behaviour — the union branch’s revision and dedup semantics lean on all of these. A mismatch (upgrade skew) must be surfaced, not silently derived wrong; DROP resets the table.