Class: Google::Datastore::V1::ReadOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb

Overview

The options shared by read requests.

Defined Under Namespace

Modules: ReadConsistency

Instance Attribute Summary collapse

Instance Attribute Details

#read_consistencyGoogle::Datastore::V1::ReadOptions::ReadConsistency

Returns The non-transactional read consistency to use. Cannot be set to +STRONG+ for global queries.

Returns:



225
226
227
228
229
230
231
232
233
234
235
236
237
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 225

class ReadOptions
  # The possible values for read consistencies.
  module ReadConsistency
    # Unspecified. This value must not be used.
    READ_CONSISTENCY_UNSPECIFIED = 0

    # Strong consistency.
    STRONG = 1

    # Eventual consistency.
    EVENTUAL = 2
  end
end

#transactionString

Returns 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.



225
226
227
228
229
230
231
232
233
234
235
236
237
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 225

class ReadOptions
  # The possible values for read consistencies.
  module ReadConsistency
    # Unspecified. This value must not be used.
    READ_CONSISTENCY_UNSPECIFIED = 0

    # Strong consistency.
    STRONG = 1

    # Eventual consistency.
    EVENTUAL = 2
  end
end