Class TransactionOptions (2.3.4)

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

Options for creating a new transaction. .. attribute:: read_only

The transaction can only be used for read operations.

:type: google.cloud.firestore_v1.types.TransactionOptions.ReadOnly

Attribute

NameDescription
read_write google.cloud.firestore_v1.types.TransactionOptions.ReadWrite
The transaction can be used for both read and write operations.

Inheritance

builtins.object > proto.message.Message > TransactionOptions

Classes

ReadOnly

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

Options for a transaction that can only be used to read documents.

ReadWrite

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

Options for a transaction that can be used to read and write documents.