Class MutationGroups (3.45.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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月16日 UTC.