Postgres module

passfile_password

procedure · 1 overloadsince 0.27.0Source

The password for a login from the password file, or an empty string. host is the name connected to; a socket directory or no name searches for localhost.

passfile_password :: (
    config: Config,
    host: string,
    port: u16,
    database: string,
    user: string
) -> string

The password for a login from the password file, or an empty string. host is the name connected to; a socket directory or no name searches for localhost.

Parameters

config: Config
its passfile names the file. Empty falls back to PGPASSFILE, then the default location.
host: string
the name connected to.
port: u16
the port connected to.
database: string
the database logged into.
user: string
the role logged in as.

Returns

string

See also