Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now generally available.


A query cursor over a list of entities.

Inherits From: BaseCursor, expected_type

Public properties:

  • keys_only: whether the query is keys_only

query the query request proto
dsquery a datastore_query.Query over query.
orders the orders of query as returned by _GuessOrders.
index_list the list of indexes used by the query.
results list of EntityRecord.



View source

Populates a QueryResult with this cursor and the given number of results.

result datastore_pb.QueryResult
count integer of how many results to return, or None if not specified
deprecated_offset integer of how many results to skip, deprecated.
compile boolean, whether we are compiling this query
first_result whether the query result is the first for this query

datastore_errors.BadArgumentError if the offset doesn't match the original offset from the RunQuery call.