Class MutationGroups (3.44.0)

MutationGroups(session)

Accumulate mutation groups for transmission during batch_write.

Parameter

NameDescription
session Session

the session used to perform the commit

Methods

batch_write

batch_write(request_options=None)

Executes batch_write.

Parameter
NameDescription
request_options RequestOptions

(Optional) Common options for this request. If a dict is provided, it must be of the same form as the protobuf message RequestOptions.

Returns
TypeDescription
:class:Iterable[google.cloud.spanner_v1.types.BatchWriteResponse]a sequence of responses for each batch.

group

group()

Returns a new MutationGroup to which mutations can be added.