Skip to main content

schema_from_database

Function schema_from_database 

Source
pub fn schema_from_database(
    db: &DatabaseSchema,
    config: IntrospectionConfig,
) -> CliResult<IntrospectionResult>
Expand description

Translate a query-layer DatabaseSchema into a prax_schema::Schema suitable as a diff source, using the migration engine’s SchemaBuilder.

config controls which tables are included/excluded (e.g. a foreign runner’s migration bookkeeping table); pass IntrospectionConfig::default for the standard exclusions.