Postgres module

query_binary

procedure · 1 overloadsince 0.27.0Source

query_dynamic with binary results: smaller and faster to decode, but every column's type must be one get can decode in binary (see Oid).

query_binary :: (
    c: *Connection,
    sql: string,
    args: ..Any
) -> (Result, Pg_Error)

query_dynamic with binary results: smaller and faster to decode, but every column's type must be one get can decode in binary (see Oid).

Parameters

c: *Connection
the connection.
sql: string
one statement, with $1, $2, ... for the parameters.
args: ..Any
the parameter values, $1 first.

Returns

See also