Skip to main content

schema_to_sql

Function schema_to_sql 

Source
pub fn schema_to_sql(schema: &Schema) -> String
Expand description

Generate SQL to create all tables, foreign keys, and indices.

Returns a complete SQL script that can be executed to create the schema. Tables are created first, then foreign keys (as ALTER TABLE), then indices.