public function StatementPrefetch::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Database/StatementPrefetch.php \Drupal\Core\Database\StatementPrefetch::__construct()
Constructs a StatementPrefetch object.
Parameters
\PDO $pdo_connection: An object of the PDO class representing a database connection.
\Drupal\Core\Database\Connection $connection: The database connection.
string $query: The query string.
array $driver_options: Driver-specific options.
bool $row_count_enabled: (optional) Enables counting the rows affected. Defaults to FALSE.
File
- core/
lib/ Drupal/ Core/ Database/ StatementPrefetch.php, line 143
Class
- StatementPrefetch
- An implementation of StatementInterface that prefetches all data.
Namespace
Drupal\Core\DatabaseCode
public function __construct(\PDO $pdo_connection, Connection $connection, $query, array $driver_options = [], bool $row_count_enabled = FALSE) {
$this->pdoConnection = $pdo_connection;
$this->connection = $connection;
$this->queryString = $query;
$this->driverOptions = $driver_options;
$this->rowCountEnabled = $row_count_enabled;
}