Skip to main content

render_catalog

Function render_catalog 

Source
pub fn render_catalog(catalog: &Catalog) -> String
Expand description

Render an entire Catalog as a single SQL string with one CREATE statement per object, in dependency-correct order.

Order: schemas → tables (inline PK/UK/CHECK only) → FK ALTER TABLE ADD CONSTRAINT stmts → standalone indexes → sequences. Each block is separated by a blank line for readability.