Skip to main content

create_introspector

Function create_introspector 

Source
pub async fn create_introspector(db_url: &str) -> Result<AnyIntrospector>
Expand description

Create an introspector from a database URL.

Detects the database type from the URL scheme and creates the appropriate introspector with a connection pool.

ยงErrors

Returns error if the URL scheme is unrecognized or the connection pool cannot be created.