Cloud Spanner V1 Client - Class MutationGroup (1.64.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
NameDescription
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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMutations

Required. The mutations in this group.

Parameter
NameDescription
var array<Google\Cloud\Spanner\V1\Mutation>
Returns
TypeDescription
$this