Filter Operators
Contains these FilterOperator classes:
- And
- Or
FilterOperator
Base class for filter operators which can be used to specify the search query
Source code in src/alpha/infra/models/filter_operators.py
filter_operator
property
Returns a filter operator
| Returns: |
|
|---|
| Raises: |
|
|---|
Methods:
__init__
Instantiate the filter operator by storing the search filter objects
filter
Applies the search filters on the query by using the filter operator
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/alpha/infra/models/filter_operators.py
And
Bases: FilterOperator
FilterOperator which can be used to explicitly specify an 'and' statement to apply behaviore of SearchFilter objects which is comparable to AND in SQL.
Source code in src/alpha/infra/models/filter_operators.py
Or
Bases: FilterOperator
FilterOperator which can be used to explicitly specify an 'or' statement to apply behaviore of SearchFilter objects which is comparable to OR in SQL.