Class: Google::Firestore::V1beta1::TransactionOptions
- Inherits:
-
Object
- Object
- Google::Firestore::V1beta1::TransactionOptions
- Defined in:
- lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/common.rb
Overview
Options for creating a new transaction.
Defined Under Namespace
Instance Attribute Summary collapse
-
#read_only ⇒ Google::Firestore::V1beta1::TransactionOptions::ReadOnly
The transaction can only be used for read operations.
-
#read_write ⇒ Google::Firestore::V1beta1::TransactionOptions::ReadWrite
The transaction can be used for both read and write operations.
Instance Attribute Details
#read_only ⇒ Google::Firestore::V1beta1::TransactionOptions::ReadOnly
Returns The transaction can only be used for read operations.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/common.rb', line 47 class TransactionOptions # Options for a transaction that can be used to read and write documents. # @!attribute [rw] retry_transaction # @return [String] # An optional transaction to retry. class ReadWrite; end # Options for a transaction that can only be used to read documents. # @!attribute [rw] read_time # @return [Google::Protobuf::Timestamp] # Reads documents at the given time. # This may not be older than 60 seconds. class ReadOnly; end end |
#read_write ⇒ Google::Firestore::V1beta1::TransactionOptions::ReadWrite
Returns The transaction can be used for both read and write operations.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/common.rb', line 47 class TransactionOptions # Options for a transaction that can be used to read and write documents. # @!attribute [rw] retry_transaction # @return [String] # An optional transaction to retry. class ReadWrite; end # Options for a transaction that can only be used to read documents. # @!attribute [rw] read_time # @return [Google::Protobuf::Timestamp] # Reads documents at the given time. # This may not be older than 60 seconds. class ReadOnly; end end |