pub fn resolve_database_url(
root: &Path,
cfg: &OrmConfig,
override_url: Option<&str>,
) -> Result<String, Error>Expand description
Reads cfg.database_url_env from .env/the environment, in that order.
override_url (from --database-url/test hooks) wins over both.