pub fn config_url(config: &Config) -> Result<Url, Error>
Expand description

Constructs a URL from PostgreSQL configuration parameters.

Returns an error if the set of configuration parameters is not representable as a URL, e.g., if there are multiple hosts.