Function torrust_index_backend::databases::database::get_driver
source · pub fn get_driver(db_path: &str) -> Result<Driver, Error>
Expand description
Get the Driver of the Database from the Connection String
Errors
This function will return an Error::UnrecognizedDatabaseDriver
if unable to match database type.