datastore.filter¶
Classes¶
Module Contents¶
- class datastore.filter.BaseFilter¶
- json_key: str¶
- __repr__()¶
- Return type:
str
- classmethod from_repr(data)¶
- Abstractmethod:
- Parameters:
data (Dict[str, Any])
- Return type:
- abstract to_repr()¶
- Return type:
Dict[str, Any]
- class datastore.filter.Filter(inner_filter)¶
- Parameters:
inner_filter (BaseFilter)
- inner_filter¶
- __repr__()¶
- Return type:
str
- __eq__(other)¶
- Parameters:
other (Any)
- Return type:
bool
- to_repr()¶
- Return type:
Dict[str, Any]
- class datastore.filter.CompositeFilter(operator, filters)¶
Bases:
BaseFilter
- Parameters:
operator (datastore.constants.CompositeFilterOperator)
filters (List[Filter])
- json_key = 'compositeFilter'¶
- operator¶
- filters¶
- __eq__(other)¶
- Parameters:
other (Any)
- Return type:
bool
- classmethod from_repr(data)¶
- Parameters:
data (Dict[str, Any])
- Return type:
- to_repr()¶
- Return type:
Dict[str, Any]
- class datastore.filter.PropertyFilter(prop, operator, value)¶
Bases:
BaseFilter
- Parameters:
prop (str)
operator (datastore.constants.PropertyFilterOperator)
value (Union[datastore.value.Value, datastore.array.Array])
- json_key = 'propertyFilter'¶
- prop¶
- operator¶
- value¶
- __eq__(other)¶
- Parameters:
other (Any)
- Return type:
bool
- classmethod from_repr(data)¶
- Parameters:
data (Dict[str, Any])
- Return type:
- to_repr()¶
- Return type:
Dict[str, Any]