heat.db.sqlalchemy.filters module¶
- heat.db.sqlalchemy.filters.exact_filter(query, model, filters)[source]¶
Applies exact match filtering to a query.
Returns the updated query. Modifies filters argument to remove filters consumed.
- Parameters
query – query to apply filters to
model – model object the query applies to, for IN-style filtering
filters – dictionary of filters; values that are lists, tuples, sets, or frozensets cause an ‘IN’ test to be performed, while exact matching (‘==’ operator) is used for other values