function StatementBase::execute
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Database/Statement/StatementBase.php \Drupal\Core\Database\Statement\StatementBase::execute()
Executes a prepared statement.
Parameters
array|null $args: (Optional) An array of values with as many elements as there are bound parameters in the SQL statement being executed. This can be NULL.
array $options: (Optional) An array of options for this query.
Return value
bool TRUE on success, or FALSE on failure.
Overrides StatementInterface::execute
3 methods override StatementBase::execute()
- Statement::execute in core/
modules/ mysqli/ src/ Driver/ Database/ mysqli/ Statement.php - StatementPrefetchIterator::execute in core/
lib/ Drupal/ Core/ Database/ StatementPrefetchIterator.php - StatementWrapperIterator::execute in core/
lib/ Drupal/ Core/ Database/ StatementWrapperIterator.php
File
-
core/
lib/ Drupal/ Core/ Database/ Statement/ StatementBase.php, line 127
Class
- StatementBase
- StatementInterface base implementation.
Namespace
Drupal\Core\Database\StatementCode
abstract public function execute(?array $args = [], array $options = []);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.