Reference documentation and code samples for the Firestore in Datastore mode V1 API class Google::Cloud::Datastore::V1::ReadOptions.
The options shared by read requests.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#read_consistency
def read_consistency() -> ::Google::Cloud::Datastore::V1::ReadOptions::ReadConsistency
Returns
-
(::Google::Cloud::Datastore::V1::ReadOptions::ReadConsistency) — The non-transactional read consistency to use.
Cannot be set to
STRONG
for global queries.
#read_consistency=
def read_consistency=(value) -> ::Google::Cloud::Datastore::V1::ReadOptions::ReadConsistency
Parameter
-
value (::Google::Cloud::Datastore::V1::ReadOptions::ReadConsistency) — The non-transactional read consistency to use.
Cannot be set to
STRONG
for global queries.
Returns
-
(::Google::Cloud::Datastore::V1::ReadOptions::ReadConsistency) — The non-transactional read consistency to use.
Cannot be set to
STRONG
for global queries.
#transaction
def transaction() -> ::String
Returns
- (::String) — The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.
#transaction=
def transaction=(value) -> ::String
Parameter
- value (::String) — The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.
Returns
- (::String) — The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.