Skip to main content

validate_database_url_for_backend

Function validate_database_url_for_backend 

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

Validates that a database URL matches a selected backend.

ยงErrors

Returns SqlxDriverError when the URL is unsupported, names a disabled driver, or names a different driver from B.