8.2.x Connection.php public Connection::update($table, array $options = array())
8.0.x Connection.php public Connection::update($table, array $options = array())
8.1.x Connection.php public Connection::update($table, array $options = array())
8.3.x Connection.php public Connection::update($table, array $options = [])

Prepares and returns an UPDATE query object.

Parameters

string $table: The table to use for the update statement.

array $options: (optional) An array of options on the query.

Return value

\Drupal\Core\Database\Query\Update A new Update query object.

See also

\Drupal\Core\Database\Query\Update

File

core/lib/Drupal/Core/Database/Connection.php, line 857

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function update($table, array $options = array()) {
  $class = $this->getDriverClass('Update');
  return new $class($this, $table, $options);
}