Class BatchWriteRequest (3.43.0)

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

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

Attributes

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

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.