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 |
Returns | |
---|---|
Type | Description |
:class: |
a sequence of responses for each batch. |
group
group()
Returns a new MutationGroup
to which mutations can be added.