Postgres module

config_from_conninfo

procedure · 1 overloadsince 0.27.0Source

The Config for the options of a connection string, as parse_conninfo makes it. Programs that combine several sources (a command line and a connection string) set the options themselves with conninfo_set first.

config_from_conninfo :: (
    info: Conninfo,
    use_environment := false
) -> (Config, Pg_Error)

The Config for the options of a connection string, as parse_conninfo makes it. Programs that combine several sources (a command line and a connection string) set the options themselves with conninfo_set first.

Parameters

info: Conninfo
the options to build from. It is not freed.
use_environment := false
fill the keywords left unset from the PG* environment variables.

Returns

See also