Function connect_url
Source pub async fn connect_url(url: &str) -> Result<Db, MigrationError>
Expand description
Open a Db from a sqlite:, postgres:// or mysql:// URL.
PostgreSQL and MySQL URLs need the postgres and mysql features of this
crate.
ยงErrors
A usage error for an unsupported scheme or a missing feature (the message
never contains the URL), or a connection failure.