Class MutationGroups (3.46.0)

MutationGroups(session)

Accumulate mutation groups for transmission during batch_write.

Parameter

Name Description
session Session

the session used to perform the commit

Methods

batch_write

batch_write(request_options=None)

Executes batch_write.

Parameter
Name Description
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
Type Description
: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.