1 prefetch.inc public DatabaseStatementPrefetch::__construct(DatabaseConnection $connection, $query, array $driver_options = array())

Creates a prefetch database statement object.

Parameters

DatabaseConnection $connection: The database connection for this query.

string $query: The query to be executed.

array $driver_options: Driver-specific options.

File

core/includes/database/prefetch.inc, line 135
Database interface code for engines that need complete control over their result sets.

Class

DatabaseStatementPrefetch
An implementation of DatabaseStatementInterface that prefetches all data.

Code

public function __construct(DatabaseConnection $connection, $query, array $driver_options = array()) {
  $this->dbh = $connection;
  $this->queryString = $query;
  $this->driverOptions = $driver_options;
}