function Statement::__construct
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Database/Statement.php \Drupal\Core\Database\Statement::__construct()
- 8.9.x core/lib/Drupal/Core/Database/Statement.php \Drupal\Core\Database\Statement::__construct()
Constructs a Statement object.
Parameters
\Drupal\Core\Database\Connection $connection: Drupal database connection object.
\mysqli $clientConnection: Client database connection object.
string $queryString: The SQL query string.
array $driverOpts: (optional) Array of query options.
bool $rowCountEnabled: (optional) Enables counting the rows affected. Defaults to FALSE.
Overrides StatementBase::__construct
File
-
core/
modules/ mysqli/ src/ Driver/ Database/ mysqli/ Statement.php, line 41
Class
- Statement
- MySQLi implementation of \Drupal\Core\Database\Query\StatementInterface.
Namespace
Drupal\mysqli\Driver\Database\mysqliCode
public function __construct(Connection $connection, \mysqli $clientConnection, string $queryString, protected array $driverOpts = [], bool $rowCountEnabled = FALSE) {
parent::__construct($connection, $clientConnection, $queryString, $rowCountEnabled);
$this->setFetchMode(FetchAs::Object);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.