function StatementPrefetchIterator::__construct

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Database/StatementPrefetchIterator.php \Drupal\Core\Database\StatementPrefetchIterator::__construct()

Constructs a StatementPrefetchIterator object.

Parameters

object $clientConnection: Client database connection object, for example \PDO.

\Drupal\Core\Database\Connection $connection: The database connection.

string $queryString: The query string.

array $driverOptions: Driver-specific options.

bool $rowCountEnabled: (optional) Enables counting the rows matched. Defaults to FALSE.

File

core/lib/Drupal/Core/Database/StatementPrefetchIterator.php, line 71

Class

StatementPrefetchIterator
An implementation of StatementInterface that prefetches all data.

Namespace

Drupal\Core\Database

Code

public function __construct(object $clientConnection, Connection $connection, string $queryString, array $driverOptions = [], bool $rowCountEnabled = FALSE) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.