class Statement
Same name in this branch
- 9 core/modules/sqlite/src/Driver/Database/sqlite/Statement.php \Drupal\sqlite\Driver\Database\sqlite\Statement
- 9 core/lib/Drupal/Core/Database/Statement.php \Drupal\Core\Database\Statement
Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Database/Driver/sqlite/Statement.php \Drupal\Core\Database\Driver\sqlite\Statement
- 8.9.x core/lib/Drupal/Core/Database/Statement.php \Drupal\Core\Database\Statement
- 10 core/modules/sqlite/src/Driver/Database/sqlite/Statement.php \Drupal\sqlite\Driver\Database\sqlite\Statement
- 10 core/lib/Drupal/Core/Database/Driver/sqlite/Statement.php \Drupal\Core\Database\Driver\sqlite\Statement
- 11.x core/modules/sqlite/src/Driver/Database/sqlite/Statement.php \Drupal\sqlite\Driver\Database\sqlite\Statement
- 11.x core/modules/mysqli/src/Driver/Database/mysqli/Statement.php \Drupal\mysqli\Driver\Database\mysqli\Statement
SQLite implementation of \Drupal\Core\Database\Statement.
Hierarchy
- class \Drupal\Core\Database\StatementPrefetch extends \Drupal\Core\Database\Iterator, \Drupal\Core\Database\StatementInterface
- class \Drupal\sqlite\Driver\Database\sqlite\Statement extends \Drupal\Core\Database\StatementInterface implements \Drupal\Core\Database\StatementPrefetch
- class \Drupal\Core\Database\Driver\sqlite\Statement implements \Drupal\sqlite\Driver\Database\sqlite\Statement
- class \Drupal\sqlite\Driver\Database\sqlite\Statement extends \Drupal\Core\Database\StatementInterface implements \Drupal\Core\Database\StatementPrefetch
Expanded class hierarchy of Statement
Deprecated
in drupal:9.4.0 and is removed from drupal:11.0.0. The SQLite database driver has been moved to the sqlite module.
See also
https://www.drupal.org/node/3129492
1 file declares its use of Statement
- SqliteDriverLegacyTest.php in core/
modules/ sqlite/ tests/ src/ Kernel/ sqlite/ SqliteDriverLegacyTest.php
File
-
core/
lib/ Drupal/ Core/ Database/ Driver/ sqlite/ Statement.php, line 17
Namespace
Drupal\Core\Database\Driver\sqliteView source
class Statement extends SqliteStatement {
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
Statement::execute | public | function | Executes a prepared statement. | Overrides StatementPrefetch::execute |
Statement::getStatement | protected | function | The PDO SQLite layer doesn't replace numeric placeholders in queries correctly, and this makes numeric expressions (such as COUNT(*) >= :count) fail. We replace numeric placeholders in the query ourselves to work around this bug. |
Overrides StatementPrefetch::getStatement |
StatementPrefetch::$columnNames | protected | property | The list of column names in this result set. | |
StatementPrefetch::$connection | protected | property | The Drupal database connection object. | |
StatementPrefetch::$currentKey | protected | property | The key of the current row. | |
StatementPrefetch::$currentRow | protected | property | The current row, retrieved in \PDO::FETCH_ASSOC format. | |
StatementPrefetch::$data | protected | property | Main data store. | |
StatementPrefetch::$defaultFetchOptions | protected | property | Holds supplementary default fetch options. | |
StatementPrefetch::$defaultFetchStyle | protected | property | Holds the default fetch style. | |
StatementPrefetch::$driverOptions | protected | property | Driver-specific options. Can be used by child classes. | |
StatementPrefetch::$fetchOptions | protected | property | Holds supplementary current fetch options (which will be used by the next fetch). | |
StatementPrefetch::$fetchStyle | protected | property | Holds the current fetch style (which will be used by the next fetch). | |
StatementPrefetch::$pdoConnection | protected | property | Reference to the PDO connection object for this statement. | |
StatementPrefetch::$queryString | protected | property | The query string. | |
StatementPrefetch::$resultRowCount | protected | property | The number of rows in this result set. | |
StatementPrefetch::$rowCount | protected | property | The number of rows matched by the last query. | |
StatementPrefetch::$rowCountEnabled | protected | property | Is rowCount() execution allowed. | |
StatementPrefetch::current | public | function | Return the current row formatted according to the current fetch style. | |
StatementPrefetch::fetch | public | function | Fetches the next row from a result set. | Overrides StatementInterface::fetch |
StatementPrefetch::fetchAll | public | function | Returns an array containing all of the result set rows. | Overrides StatementInterface::fetchAll |
StatementPrefetch::fetchAllAssoc | public | function | Returns the result set as an associative array keyed by the given field. | Overrides StatementInterface::fetchAllAssoc |
StatementPrefetch::fetchAllKeyed | public | function | Returns the entire result set as a single associative array. | Overrides StatementInterface::fetchAllKeyed |
StatementPrefetch::fetchAssoc | public | function | Fetches the next row and returns it as an associative array. | Overrides StatementInterface::fetchAssoc |
StatementPrefetch::fetchCol | public | function | Returns an entire single column of a result set as an indexed array. | Overrides StatementInterface::fetchCol |
StatementPrefetch::fetchColumn | public | function | ||
StatementPrefetch::fetchField | public | function | Returns a single field from the next record of a result set. | Overrides StatementInterface::fetchField |
StatementPrefetch::fetchObject | public | function | Fetches the next row and returns it as an object. | Overrides StatementInterface::fetchObject |
StatementPrefetch::getConnectionTarget | public | function | ||
StatementPrefetch::getQueryString | public | function | Gets the query string of this statement. | Overrides StatementInterface::getQueryString |
StatementPrefetch::key | public | function | #[\ReturnTypeWillChange] | |
StatementPrefetch::next | public | function | #[\ReturnTypeWillChange] | |
StatementPrefetch::rewind | public | function | #[\ReturnTypeWillChange] | |
StatementPrefetch::rowCount | public | function | Returns the number of rows matched by the last SQL statement. | Overrides StatementInterface::rowCount |
StatementPrefetch::setFetchMode | public | function | Sets the default fetch mode for this statement. | Overrides StatementInterface::setFetchMode |
StatementPrefetch::throwPDOException | protected | function | Throw a PDO Exception based on the last PDO error. | |
StatementPrefetch::valid | public | function | #[\ReturnTypeWillChange] | |
StatementPrefetch::__construct | public | function | Constructs a StatementPrefetch object. | |
StatementPrefetch::__get | public | function | Implements the magic __get() method. | |
StatementPrefetch::__set | public | function | Implements the magic __set() method. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.