Postgres module

is_conninfo

procedure · 1 overloadsince 0.27.0Source

Whether text is something a program should hand to parse_conninfo: a URI or a list with an = in it. psql and libpq use this to tell a connection string from a database name.

is_conninfo :: (text: string) -> bool

Whether text is something a program should hand to parse_conninfo: a URI or a list with an = in it. psql and libpq use this to tell a connection string from a database name.

Parameters

text: string
the argument to classify.

Returns

bool

See also