Spanner/src/Database.php
public function updateBatch($table, array $dataSet, array $options = [])
    {
        $mutations = [];
        foreach ($dataSet as $data) {
            $mutations[] = $this->operation->mutation(Operation::OP_UPDATE, $table, $data);
        }

        return $this->commitInSingleUseTransaction($mutations, $options);
    }
public function updateBatch($table, array $dataSet, array $options = [])
    {
        $mutations = [];
        foreach ($dataSet as $data) {
            $mutations[] = $this->operation->mutation(Operation::OP_UPDATE, $table, $data);
        }

        return $this->commitInSingleUseTransaction($mutations, $options);
    }
public function updateBatch ( $ table , array $ dataSet , array $ options = [ ] ) { $ mutations = [ ] ; foreach ( $ dataSet as $ data ) { $ mutations [ ] = $ this -> operation -> mutation ( Operation :: OP_UPDATE , $ table , $ data ) ; } return $ this -> commitInSingleUseTransaction ( $ mutations , $ options ) ; }
Update multiple rows.

Only data which you wish to update need be included. The list of columns
must contain enough columns to allow Cloud Spanner to derive values for
all primary key columns in the row(s) to be modified.

Mutations are committed in a single-use transaction.

Example:
```
$database->updateBatch('Posts', [
[
'ID' => 1337,
'postContent' => 'Thanks for visiting our site!'
], [
'ID' => 1338,
'postContent' => 'A little bit about us!'
]
]);
```

@codingStandardsIgnoreStart
@see https://cloud.google.com/spanner/reference/rpc/google.spanner.v1#google.spanner.v1.CommitRequest CommitRequest
@codingStandardsIgnoreEnd

@param string $table The table to mutate.
@param array $dataSet The row data to update.
@param array $options [optional] Configuration options.
@return Timestamp The commit Timestamp.
Update multiple rows .