Class MutationGroups (3.50.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, exclude_txn_from_change_streams=False)

Executes batch_write.

Parameters
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.

exclude_txn_from_change_streams bool

(Optional) If true, instructs the transaction to be excluded from being recorded in change streams with the DDL option allow_txn_exclusion=true. This does not exclude the transaction from being recorded in the change streams with the DDL option allow_txn_exclusion being false or unset.

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.