Skip to main content

catalog_create_statements

Function catalog_create_statements 

Source
pub fn catalog_create_statements(graph: &Graph) -> Vec<String>
Expand description

The store’s whole-catalog DDL statements (ADR-0481 §3): one CREATE INDEX / CREATE CONSTRAINT statement per named catalog entry, in the order the checkpoint manifest persists the catalog (Graph::named_indexes then Graph::named_constraints — the name-keyed catalog’s order; the catalog keeps no creation sequence). Every statement is the SHOW INDEXES / SHOW CONSTRAINTS createStatement rendering — the dialect’s full form, since a schema mirror must recreate, not hide. An entry whose renderer returns None — exactly the rows where the SHOW column is NULL (a legacy detail-less index row, a graph-type-managed dependent constraint, a kind with no standalone CREATE form) — is absent: its schema is already carried by the graph type’s canonical text or the manifest, never a fabricated statement.