pub async fn read_schema(
pool: &PgPool,
db_schema: &str,
) -> Result<DatabaseModel, SchemaReverseEngineerError>Expand description
Introspects the given Postgres schema (db_schema, e.g. "public") and builds a
DatabaseModel describing its tables, columns, keys, foreign keys, check/exclusion
constraints, enum types, views, functions, and procedures.