PostgreSQL database result set.
PostgreSQL database result set.
__construct($sql, $connection_handle, $result_set_handle) ¶Construct a new AnewtDatabaseResultSet instance (internal use).
Do not call this method directly; it is for internal use only.
(Note to backend implementors: you should override this constructor, call into the parent, and then store the n_rows and n_rows_affected values)
$sqlThe SQL query for this result set
$connection_handleThe internal connection handle
$result_set_handleThe internal result set handle
fetch_one() ¶Return the next row.
An associative array containing all fields of the next result row from the result set.
free() ¶Free resources associated with this result set.
You cannot use any methods on the result set instance anymore after calling this method.
obtain_field_types() [protected] ¶Deduce the data types in this result set.
This method should be implemented in backends to perform automatic type conversion.
cast_row(&$row) [protected] ¶Cast a row of data into native PHP data types.
This method should be implemented in backends to perform automatic type conversion.
Note that the array is modified in-place (and no result is returned).
$rowA row of data.
AnewtDatabaseResultSet::$connection_handleAnewtDatabaseResultSet::count()AnewtDatabaseResultSet::$n_rows_affectedAnewtDatabaseResultSet::fetch_all()AnewtDatabaseResultSet::count_affected()AnewtDatabaseResultSet::$n_rowsAnewtDatabaseResultSet::$sqlAnewtDatabaseResultSet::$field_typesAnewtDatabaseResultSet::$result_set_handleAnewtDatabaseResultSet::fetch_many()