Skip to main content

introspect_database

Function introspect_database 

Source
pub async fn introspect_database(
    provider: &str,
    database_url: &str,
    options: &IntrospectionOptions,
) -> CliResult<DatabaseSchema>
Expand description

Introspect a database, dispatching to the backend matching provider.

This is the single entry point shared by db pull and the migration engine’s resolve_source_schema. Each backend is behind its cargo feature; a provider whose feature was not compiled in returns a clear Config error rather than silently doing nothing.