Tokio-postgres support for service file and environment variables.

Connection string parsing with support for service file and a subset of psql environment variables.

Note: tokio-postgres 0.7.9 introduced a change preventing PGUSER and service configuration to set connection user. The release of tokio-postgres 0.7.10 fix this issue.

Environment variables

Passfile support

Passfile is actually supported only on linux platform

Example

``` use pgclientconfig::load_config;

let config = load_config(Some("service=myservice")).unwrap(); println!("{config:#?}"); ```

Precedence rules

See also