You are here

public function StatementInterface::execute in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Database/StatementInterface.php \Drupal\Core\Database\StatementInterface::execute()
  2. 10 core/lib/Drupal/Core/Database/StatementInterface.php \Drupal\Core\Database\StatementInterface::execute()

Executes a prepared statement.

Parameters

$args: An array of values with as many elements as there are bound parameters in the SQL statement being executed. This can be NULL.

$options: An array of options for this query.

Return value

TRUE on success, or FALSE on failure.

4 methods override StatementInterface::execute()
Statement::execute in core/lib/Drupal/Core/Database/Statement.php
Executes a prepared statement.
StatementEmpty::execute in core/lib/Drupal/Core/Database/StatementEmpty.php
Executes a prepared statement.
StatementPrefetch::execute in core/lib/Drupal/Core/Database/StatementPrefetch.php
Executes a prepared statement.
StatementWrapper::execute in core/lib/Drupal/Core/Database/StatementWrapper.php
Executes a prepared statement.

File

core/lib/Drupal/Core/Database/StatementInterface.php, line 35

Class

StatementInterface
Represents a prepared statement.

Namespace

Drupal\Core\Database

Code

public function execute($args = [], $options = []);