pub async fn connect(db_path: &str) -> Result<Box<dyn Database>, Error>
Expand description

Connect to a database.

Errors

This function will return an Error::UnrecognizedDatabaseDriver if unable to match database type.