Class BatchWriteRequest (3.51.0)

BatchWriteRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The request for BatchWrite][google.spanner.v1.Spanner.BatchWrite].

Attributes

Name Description
session str
Required. The session in which the batch request is to be run.
request_options google.cloud.spanner_v1.types.RequestOptions
Common options for this request.
mutation_groups MutableSequence[google.cloud.spanner_v1.types.BatchWriteRequest.MutationGroup]
Required. The groups of mutations to be applied.
exclude_txn_from_change_streams bool
Optional. When exclude_txn_from_change_streams is set to true: - Mutations from all transactions in this batch write operation will not be recorded in change streams with DDL option allow_txn_exclusion=true that are tracking columns modified by these transactions. - Mutations from all transactions in this batch write operation will be recorded in change streams with DDL option allow_txn_exclusion=false or not set that are tracking columns modified by these transactions. When exclude_txn_from_change_streams is set to false or not set, mutations from all transactions in this batch write operation will be recorded in all change streams that are tracking columns modified by these transactions.

Classes

MutationGroup

MutationGroup(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A group of mutations to be committed together. Related mutations should be placed in a group. For example, two mutations inserting rows with the same primary key prefix in both parent and child tables are related.