Skip to main content

require_postgres

Function require_postgres 

Source
pub fn require_postgres(db_url: &str) -> Result<()>
Expand description

Check that db_url is a PostgreSQL connection string, in URL or libpq form.

§Errors

Returns an error naming the PostgreSQL-only rule for a removed engine’s URL, and one naming the two accepted forms for anything tokio-postgres cannot parse.