Firestore in Datastore mode API - Class Google::Cloud::Datastore::Cursor (v2.7.1)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Firestore in Datastore mode API class Google::Cloud::Datastore::Cursor.
Cursor
Cursor is a point in query results. Cursors are returned in
QueryResults.
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
Base64 encoded array of bytes
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-10 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-10 UTC."}