heat.db.filters module

heat.db.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.

  • 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