db_update($table, array $options = array())
Returns a new UpdateQuery object for the active database.
Parameters
string $table: The table to update.
array $options: An array of options to control how the query operates.
Return value
\Drupal\Core\Database\Query\Update A new Update object for this connection.
Deprecated as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call update() on it. For example, $in