Cloud Spanner V1 Client - Class MutationGroup (1.79.0)

Reference documentation and code samples for the Cloud Spanner V1 Client class MutationGroup.

A group of mutations to be committed together. Related mutations should be placed in a group. For example, two mutations inserting rows with the same primary key prefix in both parent and child tables are related.

Generated from protobuf message google.spanner.v1.BatchWriteRequest.MutationGroup

Namespace

Google \ Cloud \ Spanner \ V1 \ BatchWriteRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ mutations array<Google\Cloud\Spanner\V1\Mutation>

Required. The mutations in this group.

getMutations

Required. The mutations in this group.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setMutations

Required. The mutations in this group.

Parameter
Name Description
var array<Google\Cloud\Spanner\V1\Mutation>
Returns
Type Description
$this