postgres/typed
src/postgres/typed.tur
defstruct
TRows
(defstruct TRows [^&cols])
a phantom row-typed handle on a libpq result set,
Since: U3
defn
trows-of
(trows-of)
wrap an opaque `Rows` as a row-typed `TRows`. The column
Since: U3
defn
trows-handle
(trows-handle)
unwrap a row-typed TRows back to its raw :int handle.
Since: U3
defn
trows-count
(trows-count)
number of rows in the result set. Polymorphic over the
Since: U3
defn
trow-get
(trow-get)
column text value at 0-based row `i`, by column name.
defn
trow-get-int
(trow-get-int)
column value at 0-based row `i` as :int, by column
defn
tcol-count
(tcol-count)
number of columns in the result set. Since: U3
defn
tcol-name
(tcol-name)
name of the column at 0-based index `j`. Since: U3
defn
trows-free
(trows-free)
release the underlying result set (PQclear). The linear
Since: U3
Internal definitions
__rows->int__int->rows