Skip to main content

resolve_database_url

Function resolve_database_url 

Source
pub fn resolve_database_url(explicit: Option<&str>) -> Result<String>
Expand description

Resolve the database URL: use explicit flag, or fall back to fraiseql.toml

ยงErrors

Returns an error if fraiseql.toml exists but cannot be read or parsed, or if no database URL can be found from any source (flag, TOML, or DATABASE_URL).