class Statement in Drupal 10
Same name in this branch
- 10 core/lib/Drupal/Core/Database/Driver/sqlite/Statement.php \Drupal\Core\Database\Driver\sqlite\Statement
- 10 core/modules/sqlite/src/Driver/Database/sqlite/Statement.php \Drupal\sqlite\Driver\Database\sqlite\Statement
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Database/Driver/sqlite/Statement.php \Drupal\Core\Database\Driver\sqlite\Statement
- 9 core/lib/Drupal/Core/Database/Driver/sqlite/Statement.php \Drupal\Core\Database\Driver\sqlite\Statement
SQLite implementation of \Drupal\Core\Database\Statement.
Hierarchy
- class \Drupal\Core\Database\StatementPrefetch implements \Drupal\Core\Database\Iterator, StatementInterface
- class \Drupal\sqlite\Driver\Database\sqlite\Statement implements StatementInterface
- class \Drupal\Core\Database\Driver\sqlite\Statement
- class \Drupal\sqlite\Driver\Database\sqlite\Statement implements StatementInterface
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/
tests/ Drupal/ KernelTests/ Core/ Database/ 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Statement:: |
public | function |
Executes a prepared statement. Overrides StatementPrefetch:: |
|
Statement:: |
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:: |
|
StatementPrefetch:: |
protected | property | The list of column names in this result set. | |
StatementPrefetch:: |
protected | property | The Drupal database connection object. | |
StatementPrefetch:: |
protected | property | The key of the current row. | |
StatementPrefetch:: |
protected | property | The current row, retrieved in \PDO::FETCH_ASSOC format. | |
StatementPrefetch:: |
protected | property | Main data store. | |
StatementPrefetch:: |
protected | property | Holds supplementary default fetch options. | |
StatementPrefetch:: |
protected | property | Holds the default fetch style. | |
StatementPrefetch:: |
protected | property | Driver-specific options. Can be used by child classes. | |
StatementPrefetch:: |
protected | property | Holds supplementary current fetch options (which will be used by the next fetch). | |
StatementPrefetch:: |
protected | property | Holds the current fetch style (which will be used by the next fetch). | |
StatementPrefetch:: |
protected | property | Reference to the PDO connection object for this statement. | |
StatementPrefetch:: |
protected | property | The query string. | |
StatementPrefetch:: |
protected | property | The number of rows in this result set. | |
StatementPrefetch:: |
protected | property | The number of rows affected by the last query. | |
StatementPrefetch:: |
protected | property | Is rowCount() execution allowed. | |
StatementPrefetch:: |
public | function | ||
StatementPrefetch:: |
public | function |
Fetches the next row from a result set. Overrides StatementInterface:: |
|
StatementPrefetch:: |
public | function |
Returns an array containing all of the result set rows. Overrides StatementInterface:: |
|
StatementPrefetch:: |
public | function |
Returns the result set as an associative array keyed by the given field. Overrides StatementInterface:: |
|
StatementPrefetch:: |
public | function |
Returns the entire result set as a single associative array. Overrides StatementInterface:: |
|
StatementPrefetch:: |
public | function |
Fetches the next row and returns it as an associative array. Overrides StatementInterface:: |
|
StatementPrefetch:: |
public | function |
Returns an entire single column of a result set as an indexed array. Overrides StatementInterface:: |
|
StatementPrefetch:: |
public | function | ||
StatementPrefetch:: |
public | function |
Returns a single field from the next record of a result set. Overrides StatementInterface:: |
|
StatementPrefetch:: |
public | function |
Fetches the next row and returns it as an object. Overrides StatementInterface:: |
|
StatementPrefetch:: |
public | function |
Returns the target connection this statement is associated with. Overrides StatementInterface:: |
|
StatementPrefetch:: |
public | function |
Gets the query string of this statement. Overrides StatementInterface:: |
|
StatementPrefetch:: |
public | function | ||
StatementPrefetch:: |
public | function | ||
StatementPrefetch:: |
public | function | ||
StatementPrefetch:: |
public | function |
Returns the number of rows affected by the last SQL statement. Overrides StatementInterface:: |
|
StatementPrefetch:: |
public | function |
Sets the default fetch mode for this statement. Overrides StatementInterface:: |
|
StatementPrefetch:: |
protected | function | Throw a PDO Exception based on the last PDO error. | |
StatementPrefetch:: |
public | function | ||
StatementPrefetch:: |
public | function | Constructs a StatementPrefetch object. |