pub async fn connect_database(
config: &Config,
role: &str,
) -> Result<Database, AppError>Expand description
Connects to the database of the master or the webserver, whatever its schema:
[database] url is required, SQLite is for one host (it warns).
§Errors
AppError::NoDatabase without a URL; AppError::Db if it can’t be reached.