datastore.query
¶
Module Contents¶
Classes¶
- class datastore.query.BaseQuery¶
- json_key: str¶
- value_kind¶
- __repr__()¶
Return repr(self).
- Return type:
str
- abstract to_repr()¶
- Return type:
Dict[str, Any]
- class datastore.query.Query(kind='', query_filter=None, order=None, start_cursor='', end_cursor='', offset=None, limit=None, projection=None, distinct_on=None)¶
Bases:
BaseQuery
- Parameters:
kind (str) –
query_filter (Optional[datastore.filter.Filter]) –
order (Optional[List[datastore.property_order.PropertyOrder]]) –
start_cursor (str) –
end_cursor (str) –
offset (Optional[int]) –
limit (Optional[int]) –
projection (Optional[List[datastore.projection.Projection]]) –
distinct_on (Optional[List[str]]) –
- json_key = 'query'¶
- __eq__(other)¶
Return self==value.
- Parameters:
other (Any) –
- Return type:
bool
- to_repr()¶
- Return type:
Dict[str, Any]
- class datastore.query.GQLQuery(query_string, allow_literals=True, named_bindings=None, positional_bindings=None)¶
Bases:
BaseQuery
- Parameters:
query_string (str) –
allow_literals (bool) –
named_bindings (Optional[Dict[str, Any]]) –
positional_bindings (Optional[List[Any]]) –
- json_key = 'gqlQuery'¶
- __eq__(other)¶
Return self==value.
- Parameters:
other (Any) –
- Return type:
bool
- classmethod _param_from_repr(param_repr)¶
- Parameters:
param_repr (Dict[str, Any]) –
- Return type:
Any
- to_repr()¶
- Return type:
Dict[str, Any]
- _param_to_repr(param)¶
- Parameters:
param (Any) –
- Return type:
Dict[str, Any]
- class datastore.query.GQLCursor(value)¶
- Parameters:
value (str) –
- __eq__(other)¶
Return self==value.
- Parameters:
other (Any) –
- Return type:
bool
- class datastore.query.QueryResultBatch(end_cursor, entity_result_type=ResultType.UNSPECIFIED, entity_results=None, more_results=MoreResultsType.UNSPECIFIED, skipped_cursor='', skipped_results=0, snapshot_version='')¶
- Parameters:
end_cursor (str) –
entity_result_type (datastore.constants.ResultType) –
entity_results (Optional[List[datastore.entity.EntityResult]]) –
more_results (datastore.constants.MoreResultsType) –
skipped_cursor (str) –
skipped_results (int) –
snapshot_version (str) –
- entity_result_kind¶
- __eq__(other)¶
Return self==value.
- Parameters:
other (Any) –
- Return type:
bool
- __repr__()¶
Return repr(self).
- Return type:
str
- classmethod from_repr(data)¶
- Parameters:
data (Dict[str, Any]) –
- Return type:
- to_repr()¶
- Return type:
Dict[str, Any]