Function torrust_index_backend::databases::database::connect
source · 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.