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

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

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

Provide data for the entire row. Cloud Spanner will attempt to find a
record matching the Primary Key, and will replace the entire row. If a
matching row is not found, it will be inserted.

Mutations are committed in a single-use transaction.

Example:
```
$database->replaceBatch('Posts', [
[
'ID' => 1337,
'postTitle' => 'Hello World!',
'postContent' => 'Thanks for visiting our site!'
], [
'ID' => 1338,
'postTitle' => 'Our History',
'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 replace.
@param array $options [optional] Configuration options.
@return Timestamp The commit Timestamp.
Replace multiple rows .