A query signature consists of a source of entities (specified as app,
namespace and optionally kind and ancestor) as well as a FilterPredicate,
grouping and a desired ordering.
Args
app
Optional app to query, derived from the environment if not specified.
namespace
Optional namespace to query, derived from the environment if
not specified.
kind
Optional kind to query.
ancestor
Optional ancestor to query, an entity_pb2.Reference.
filter_predicate
Optional FilterPredicate by which to restrict the query.
group_by
Optional list of properties to group the results by.
order
Optional Order in which to return results.
read_time_us
Optional timestamp to read the storage from. Internal use
only.
Raises
datastore_errors.BadArgumentError if any argument is invalid.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-09-30 UTC."],[[["This documentation describes the `Query` class, which represents an immutable query signature for the Google App Engine datastore."],["A `Query` object specifies the source of entities, filtering criteria, grouping, and desired ordering using parameters like `app`, `namespace`, `kind`, `ancestor`, `filter_predicate`, `group_by`, and `order`."],["The `run` and `run_async` methods allow for executing the query with a given `datastore_rpc.Connection`, returning results either synchronously or asynchronously."],["The `Query` class allows for comparison via `__eq__` and `__ne__` methods."],["Both `run` and `run_async` can raise a `datastore_errors.BadArgumentError` if any of their arguments are invalid."]]],[]]