AnewtDatabaseResultSetSQLite class

SQLite database result set.

Class Overview

SQLite database result set.

See also

Public Methods

__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)

Parameters

$sql

The SQL query for this result set

$connection_handle

The internal connection handle

$result_set_handle

The internal result set handle

See also

fetch_one()

Return the next row.

Return value

An associative array containing all fields of the next result row from the result set.

See also

fetch_all()

Return all remaining rows.

Return value

A numeric array containing the result rows as associative arrays. This may be an empty list.

See also

free()

Free resources associated with this result set.

You cannot use any methods on the result set instance anymore after calling this method.

Protected Methods

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).

Parameters

$row

A row of data.

Inheritance

Base Classes

Inherited members