Reference documentation and code samples for the Firestore in Datastore mode V1 API class Google::Cloud::Datastore::V1::TransactionOptions.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#read_only
def read_only() -> ::Google::Cloud::Datastore::V1::TransactionOptions::ReadOnly
-
(::Google::Cloud::Datastore::V1::TransactionOptions::ReadOnly) — The transaction should only allow reads.
Note: The following fields are mutually exclusive:
read_only
,read_write
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#read_only=
def read_only=(value) -> ::Google::Cloud::Datastore::V1::TransactionOptions::ReadOnly
-
value (::Google::Cloud::Datastore::V1::TransactionOptions::ReadOnly) — The transaction should only allow reads.
Note: The following fields are mutually exclusive:
read_only
,read_write
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Datastore::V1::TransactionOptions::ReadOnly) — The transaction should only allow reads.
Note: The following fields are mutually exclusive:
read_only
,read_write
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#read_write
def read_write() -> ::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite
-
(::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite) — The transaction should allow both reads and writes.
Note: The following fields are mutually exclusive:
read_write
,read_only
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#read_write=
def read_write=(value) -> ::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite
-
value (::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite) — The transaction should allow both reads and writes.
Note: The following fields are mutually exclusive:
read_write
,read_only
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite) — The transaction should allow both reads and writes.
Note: The following fields are mutually exclusive:
read_write
,read_only
. If a field in that set is populated, all other fields in the set will automatically be cleared.