Skip to main content

infer_enabled_driver_from_url

Function infer_enabled_driver_from_url 

Source
pub fn infer_enabled_driver_from_url(
    database_url: &str,
) -> Result<SqlxDriver, SqlxDriverError>
Expand description

Infers the SQLx driver from a database URL or SQLx-style SQLite memory URL.

ยงErrors

Returns SqlxDriverError when the URL scheme is unsupported or when the inferred driver was not enabled at compile time.