Class: Google::Datastore::V1::TransactionOptions
- Inherits:
-
Object
- Object
- Google::Datastore::V1::TransactionOptions
- Defined in:
- lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb
Overview
Options for beginning a new transaction.
Transactions can be created explicitly with calls to Datastore::BeginTransaction or implicitly by setting ReadOptions#new_transaction in read requests.
Defined Under Namespace
Instance Attribute Summary collapse
-
#read_only ⇒ Google::Datastore::V1::TransactionOptions::ReadOnly
The transaction should only allow reads.
-
#read_write ⇒ Google::Datastore::V1::TransactionOptions::ReadWrite
The transaction should allow both reads and writes.
Instance Attribute Details
#read_only ⇒ Google::Datastore::V1::TransactionOptions::ReadOnly
Returns The transaction should only allow reads.
269 270 271 272 273 274 275 276 277 278 |
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 269 class TransactionOptions # Options specific to read / write transactions. # @!attribute [rw] previous_transaction # @return [String] # The transaction identifier of the transaction being retried. class ReadWrite; end # Options specific to read-only transactions. class ReadOnly; end end |
#read_write ⇒ Google::Datastore::V1::TransactionOptions::ReadWrite
Returns The transaction should allow both reads and writes.
269 270 271 272 273 274 275 276 277 278 |
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 269 class TransactionOptions # Options specific to read / write transactions. # @!attribute [rw] previous_transaction # @return [String] # The transaction identifier of the transaction being retried. class ReadWrite; end # Options specific to read-only transactions. class ReadOnly; end end |