function Query::execute
Runs the query against the database.
Return value
\Drupal\Core\Database\StatementInterface|null A prepared statement, or NULL if the query is not valid.
7 methods override Query::execute()
- Delete::execute in core/
lib/ Drupal/ Core/ Database/ Query/ Delete.php - Executes the DELETE query.
- Insert::execute in core/
lib/ Drupal/ Core/ Database/ Query/ Insert.php - Executes the insert query.
- Merge::execute in core/
lib/ Drupal/ Core/ Database/ Query/ Merge.php - Executes the merge database query.
- Select::execute in core/
lib/ Drupal/ Core/ Database/ Query/ Select.php - Runs the query against the database.
- Truncate::execute in core/
lib/ Drupal/ Core/ Database/ Query/ Truncate.php - Executes the TRUNCATE query.
File
-
core/
lib/ Drupal/ Core/ Database/ Query/ Query.php, line 112
Class
- Query
- Base class for query builders.
Namespace
Drupal\Core\Database\QueryCode
abstract protected function execute();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.