forage v0.2.0 Forage.QueryBuilder.SearchFilter.AddFilterToQuery

Link to this section Summary

Functions

Defines a function that adds fields to a pre-existing Ecto query

Link to this section Functions

Link to this macro define_filter_adder(filter_adder, n_max) (macro)

Defines a function that adds fields to a pre-existing Ecto query.

The function is named filter_adder (must be an atom) and will support up to n_max variables in the query.

Link to this function filter_adder_clauses(filter_adder, n, i)