class Statement
Same name in this branch
- 10 core/modules/sqlite/src/Driver/Database/sqlite/Statement.php \Drupal\sqlite\Driver\Database\sqlite\Statement
Same name and namespace in other branches
- 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
- 9 core/modules/sqlite/src/Driver/Database/sqlite/Statement.php \Drupal\sqlite\Driver\Database\sqlite\Statement
- 9 core/lib/Drupal/Core/Database/Driver/sqlite/Statement.php \Drupal\Core\Database\Driver\sqlite\Statement
- 9 core/lib/Drupal/Core/Database/Statement.php \Drupal\Core\Database\Statement
- 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
SQLite implementation of \Drupal\Core\Database\Statement.
Hierarchy
- class \Drupal\Core\Database\StatementPrefetchIterator extends \Drupal\Core\Database\Iterator, \Drupal\Core\Database\StatementInterface uses \Drupal\Core\Database\StatementIteratorTrait, \Drupal\Core\Database\FetchModeTrait
- class \Drupal\sqlite\Driver\Database\sqlite\Statement extends \Drupal\Core\Database\StatementInterface implements \Drupal\Core\Database\StatementPrefetchIterator
- 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\StatementPrefetchIterator
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 | Deprecated | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|---|
FetchModeTrait::$fetchModeLiterals | protected | property | Map FETCH_* modes to their literal for inclusion in messages. | ||
FetchModeTrait::$supportedFetchModes | protected | property | The fetch modes supported. | ||
FetchModeTrait::assocIntoObject | Deprecated | protected | function | Fills an object with data from a FETCH_ASSOC row. | |
FetchModeTrait::assocToBoth | Deprecated | protected | function | Converts a row of data in FETCH_ASSOC format to FETCH_BOTH. | |
FetchModeTrait::assocToClass | protected | function | Converts a row of data in FETCH_ASSOC format to FETCH_CLASS. | ||
FetchModeTrait::assocToClassType | Deprecated | protected | function | Converts a row of data to FETCH_CLASS | FETCH_CLASSTYPE. | |
FetchModeTrait::assocToColumn | protected | function | Converts a row of data in FETCH_ASSOC format to FETCH_COLUMN. | ||
FetchModeTrait::assocToNum | protected | function | Converts a row of data in FETCH_ASSOC format to FETCH_NUM. | ||
FetchModeTrait::assocToObj | protected | function | Converts a row of data in FETCH_ASSOC format to FETCH_OBJ. | ||
Statement::execute | public | function | Executes a prepared statement. | Overrides StatementPrefetchIterator::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 StatementPrefetchIterator::getStatement | |
StatementIteratorTrait::$isResultsetIterable | private | property | Traces if rows can be fetched from the resultset. | ||
StatementIteratorTrait::$resultsetKey | private | property | The key of the current row. | ||
StatementIteratorTrait::$resultsetRow | private | property | The current row, retrieved in the current fetch format. | ||
StatementIteratorTrait::current | public | function | Returns the current element. | ||
StatementIteratorTrait::getResultsetCurrentRowIndex | protected | function | Returns the row index of the current element in the resultset. | ||
StatementIteratorTrait::key | public | function | Returns the key of the current element. | ||
StatementIteratorTrait::markResultsetFetchingComplete | protected | function | Informs the iterator that no more rows can be fetched from the resultset. | ||
StatementIteratorTrait::markResultsetIterable | protected | function | Informs the iterator whether rows can be fetched from the resultset. | ||
StatementIteratorTrait::next | public | function | Moves the current position to the next element. | ||
StatementIteratorTrait::rewind | public | function | Rewinds back to the first element of the Iterator. | ||
StatementIteratorTrait::setResultsetCurrentRow | protected | function | Sets the current resultset row for the iterator, and increments the key. | ||
StatementIteratorTrait::valid | public | function | Checks if current position is valid. | ||
StatementPrefetchIterator::$columnNames | protected | property | The list of column names in this result set. | ||
StatementPrefetchIterator::$data | protected | property | Main data store. | ||
StatementPrefetchIterator::$defaultFetchStyle | protected | property | Holds the default fetch style. | ||
StatementPrefetchIterator::$fetchOptions | protected | property | Holds fetch options. | ||
StatementPrefetchIterator::$rowCount | protected | property | The number of rows matched by the last query. | ||
StatementPrefetchIterator::fetch | public | function | Fetches the next row from a result set. | Overrides StatementInterface::fetch | |
StatementPrefetchIterator::fetchAll | public | function | Returns an array containing all of the result set rows. | Overrides StatementInterface::fetchAll | |
StatementPrefetchIterator::fetchAllAssoc | public | function | Returns the result set as an associative array keyed by the given field. | Overrides StatementInterface::fetchAllAssoc | |
StatementPrefetchIterator::fetchAllKeyed | public | function | Returns the entire result set as a single associative array. | Overrides StatementInterface::fetchAllKeyed | |
StatementPrefetchIterator::fetchAssoc | public | function | Fetches the next row and returns it as an associative array. | Overrides StatementInterface::fetchAssoc | |
StatementPrefetchIterator::fetchCol | public | function | Returns an entire single column of a result set as an indexed array. | Overrides StatementInterface::fetchCol | |
StatementPrefetchIterator::fetchColumn | public | function | |||
StatementPrefetchIterator::fetchField | public | function | Returns a single field from the next record of a result set. | Overrides StatementInterface::fetchField | |
StatementPrefetchIterator::fetchObject | public | function | Fetches the next row and returns it as an object. | Overrides StatementInterface::fetchObject | |
StatementPrefetchIterator::getConnectionTarget | public | function | Returns the target connection this statement is associated with. | Overrides StatementInterface::getConnectionTarget | |
StatementPrefetchIterator::getQueryString | public | function | Gets the query string of this statement. | Overrides StatementInterface::getQueryString | |
StatementPrefetchIterator::rowCount | public | function | Returns the number of rows matched by the last SQL statement. | Overrides StatementInterface::rowCount | |
StatementPrefetchIterator::setFetchMode | public | function | Sets the default fetch mode for this statement. | Overrides StatementInterface::setFetchMode | |
StatementPrefetchIterator::throwPDOException | Deprecated | protected | function | Throw a PDO Exception based on the last PDO error. | |
StatementPrefetchIterator::__construct | public | function | Constructs a StatementPrefetchIterator object. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.