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.
- config: its
passfilenames the file. Empty falls back toPGPASSFILE, then the default location. - host: the name connected to.
- port: the port connected to.
- database: the database logged into.
- user: the role logged in as.
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
passfilenames the file. Empty falls back toPGPASSFILE, 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