Connection::$statementClass

Same name in this branch
  1. 9 core/modules/sqlite/src/Driver/Database/sqlite/Connection.php \Drupal\sqlite\Driver\Database\sqlite\Connection::statementClass
  2. 9 core/modules/mysql/src/Driver/Database/mysql/Connection.php \Drupal\mysql\Driver\Database\mysql\Connection::statementClass
  3. 9 core/modules/pgsql/src/Driver/Database/pgsql/Connection.php \Drupal\pgsql\Driver\Database\pgsql\Connection::statementClass
Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::statementClass
  2. 10 core/tests/fixtures/database_drivers/custom/fake/Connection.php \Drupal\Driver\Database\fake\Connection::statementClass
  3. 11.x core/tests/fixtures/database_drivers/custom/fake/Connection.php \Drupal\Driver\Database\fake\Connection::statementClass

The name of the Statement class for this connection.

Type: string|null

Deprecated

in drupal:9.1.0 and is removed from drupal:10.0.0. Database drivers should use or extend StatementWrapper instead, and encapsulate client-level statement objects.

See also

https://www.drupal.org/node/3177488

File

core/lib/Drupal/Core/Database/Connection.php, line 84

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

protected $statementClass = 'Drupal\\Core\\Database\\Statement';

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