google-cloud-datastore - Class Google::Cloud::Datastore::Cursor (v2.2.4)

Reference documentation and code samples for the google-cloud-datastore class Google::Cloud::Datastore::Cursor.

Cursor

Cursor is a point in query results. Cursors are returned in QueryResults.

Inherits

  • Object

Example

require "google/cloud/datastore"

datastore = Google::Cloud::Datastore.new

query = datastore.query("Task").
  where("done", "=", false)

tasks = datastore.run query
tasks.cursor.to_s #=> "c2Vjb25kLXBhZ2UtY3Vyc29y"

Methods

#initialize

def initialize(cursor) -> Cursor

Base64 encoded array of bytes

Returns
  • (Cursor) — a new instance of Cursor

#to_s

def to_s()

Base64 encoded array of bytes