Same name in this branch
  1. 10 core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::execute()
  2. 10 core/lib/Drupal/Core/Config/Entity/Query/Query.php \Drupal\Core\Config\Entity\Query\Query::execute()
  3. 10 core/lib/Drupal/Core/Entity/KeyValueStore/Query/Query.php \Drupal\Core\Entity\KeyValueStore\Query\Query::execute()
  4. 10 core/lib/Drupal/Core/Entity/Query/Null/Query.php \Drupal\Core\Entity\Query\Null\Query::execute()
  5. 10 core/lib/Drupal/Core/Entity/Query/Sql/Query.php \Drupal\Core\Entity\Query\Sql\Query::execute()
Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::execute()
  2. 9 core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\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.

6 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.
Truncate::execute in core/lib/Drupal/Core/Database/Query/Truncate.php
Executes the TRUNCATE query.
Update::execute in core/lib/Drupal/Core/Database/Query/Update.php
Executes the UPDATE query.

... See full list

File

core/lib/Drupal/Core/Database/Query/Query.php, line 112

Class

Query
Base class for query builders.

Namespace

Drupal\Core\Database\Query

Code

protected abstract function execute();