An implementation of DatabaseStatementInterface that prefetches all data.
This class behaves very similar to a PDOStatement but as it always fetches every row it is possible to manipulate those results.
Hierarchy
- class DatabaseStatementPrefetch implements \Iterator, DatabaseStatementInterface
Expanded class hierarchy of DatabaseStatementPrefetch
Related topics
File
- core/
includes/ database/ prefetch.inc, line 19 - Database interface code for engines that need complete control over their result sets.
Members
Name | Modifiers | Type | Description |
---|---|---|---|
DatabaseStatementPrefetch:: |
protected | property | The list of column names in this result set. |
DatabaseStatementPrefetch:: |
protected | property | The key of the current row. |
DatabaseStatementPrefetch:: |
protected | property | The current row, retrieved in PDO::FETCH_ASSOC format. |
DatabaseStatementPrefetch:: |
protected | property | Main data store. |
DatabaseStatementPrefetch:: |
public | property | Reference to the database connection object for this statement. |
DatabaseStatementPrefetch:: |
protected | property | Holds supplementary default fetch options. |
DatabaseStatementPrefetch:: |
protected | property | Holds the default fetch style. |
DatabaseStatementPrefetch:: |
protected | property | Driver-specific options. Can be used by child classes. |
DatabaseStatementPrefetch:: |
protected | property | Holds supplementary current fetch options (which will be used by the next fetch). |
DatabaseStatementPrefetch:: |
protected | property | Holds the current fetch style (which will be used by the next fetch). |
DatabaseStatementPrefetch:: |
protected | property | The query string. |
DatabaseStatementPrefetch:: |
protected | property | The number of rows in this result set. |
DatabaseStatementPrefetch:: |
protected | property | The number of rows affected by the last query. |
DatabaseStatementPrefetch:: |
public | function | |
DatabaseStatementPrefetch:: |
public | function |
Executes a prepared statement. Overrides DatabaseStatementInterface:: |
DatabaseStatementPrefetch:: |
public | function | |
DatabaseStatementPrefetch:: |
public | function | |
DatabaseStatementPrefetch:: |
public | function |
Returns the result set as an associative array keyed by the given field. Overrides DatabaseStatementInterface:: |
DatabaseStatementPrefetch:: |
public | function |
Returns the entire result set as a single associative array. Overrides DatabaseStatementInterface:: |
DatabaseStatementPrefetch:: |
public | function |
Fetches the next row and returns it as an associative array. Overrides DatabaseStatementInterface:: |
DatabaseStatementPrefetch:: |
public | function |
Returns an entire single column of a result set as an indexed array. Overrides DatabaseStatementInterface:: |
DatabaseStatementPrefetch:: |
public | function | |
DatabaseStatementPrefetch:: |
public | function |
Returns a single field from the next record of a result set. Overrides DatabaseStatementInterface:: |
DatabaseStatementPrefetch:: |
public | function | |
DatabaseStatementPrefetch:: |
public | function |
Return the object's SQL query string. Overrides DatabaseStatementInterface:: |
DatabaseStatementPrefetch:: |
protected | function | Grab a PDOStatement object from a given query and its arguments. |
DatabaseStatementPrefetch:: |
public | function | |
DatabaseStatementPrefetch:: |
public | function | |
DatabaseStatementPrefetch:: |
public | function | |
DatabaseStatementPrefetch:: |
public | function |
Returns the number of rows affected by the last SQL statement. Overrides DatabaseStatementInterface:: |
DatabaseStatementPrefetch:: |
public | function | |
DatabaseStatementPrefetch:: |
protected | function | Throw a PDO Exception based on the last PDO error. |
DatabaseStatementPrefetch:: |
public | function | |
DatabaseStatementPrefetch:: |
public | function |