Skip to main content

validate_dsn

Function validate_dsn 

Source
pub fn validate_dsn(dsn: &str) -> Result<()>
Expand description

Validates that a DSN string is parseable by the dsn crate. Note: SQLite DSNs have special formats that dsn crate doesn’t recognize, so we skip validation for them.

§Errors

Returns an error if the DSN is invalid.