Traversable
, Countable
A query result.
See Fetching Results for a general overview.
stdClass
instance, where the column names are the property names.FALSE
and TRUE
and vice versa.int
if it fits into maximum integer
size or else to float
and vice versa.int
$status#string
$statusMessage#string
$errorMessage#int
$numRows#int
$numCols#int
$affectedRows#array
$diag#Error
details. See PQresultErrorField docs.int
$fetchType# = pq\Result::FETCH_ARRAYint
$autoConvert# = pq\Result::CONV_ALLBind a variable to a result column.
bool
pq\Result::bind(mixed
$col, mixed
&$var)
Count number of rows in this result set.
Describe a prepared statement.
Fetch all rows at once.
array
pq\Result::fetchAll([int
$fetch_type = pq\Result::$fetchType])
Fetch all rows of a single column.
array
pq\Result::fetchAllCols([int
$col = 0])
Iteratively fetch a row into bound variables.
Iteratively fetch a single column.
bool
pq\Result::fetchCol(mixed
&$ref[, mixed
$col = 0])
Iteratively fetch a row.
mixed
pq\Result::fetchRow([int
$fetch_type = pq\Result::$fetchType])
Fetch the complete result set as a simple map, a multi dimensional array, each dimension indexed by a column.
array
pq\Result::map([mixed
$keys = 0[, mixed
$vals = NULL
[, int
$fetch_type = pq\Result::$fetchType]]])