Postgres module

get

procedure · 2 overloadssince 0.27.0Source

The value at row and column as a T. NULL is an error unless T is a Nullable.

get :: (r: *Result, row: s64, column: s64, $T: Type) -> (T, Pg_Error)

The value at row and column as a T. NULL is an error unless T is a Nullable.

Parameters

r: *Result
the result.
row: s64
the row, counting from 0.
column: s64
the column, counting from 0.
$T: Type
the type to decode to.

Returns

T
get :: (
    r: *Result,
    row: s64,
    column_name: string,
    $T: Type
) -> (T, Pg_Error)

get with the column given by name (see column_index).

Parameters

r: *Result
the result.
row: s64
the row, counting from 0.
column_name: string
the column's name. The first one with it is used.
$T: Type
the type to decode to.

Returns

T

See also