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 | |
---|---|
Name | Description |
read_write |
google.cloud.firestore_v1.types.TransactionOptions.ReadWrite
The transaction can be used for both read and write operations. |
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.