Flop 0.19 comes with custom fields, a new helper for dynamically adding bindings, and a set of filter manipulation functions.
Added
- Support for custom fields. These fields allow you to run custom filter
functions for anything that cannot be expressed with Flop filters. - Added
Flop.with_named_bindings/4for dynamically adding bindings needed for
a Flop query. - Added
fetch,get,get_all,delete,delete_first,drop,new,
take,pop,pop_first,putandput_newfunctions toFlop.Filter. - Added
Flop.Meta.with_errors/3. - Added
ecto_typeoption to join fields. - Added
not_likeandnot_ilikefilter operators. - Added a cheatsheet for schema configuration.
Changed
- Renamed
Flop.bindings/3toFlop.named_bindings/3. Flop.Filter.allowed_operators/2now tries to determine the Ecto type by
reading the Flop field type from the schema module. This function is used
during parameter validation, which means the validation step will be a bit
stricter now. For join and custom fields, the Ecto type is determined via the
newecto_typeoption. If the option is not set, the function returns all
operators as before. For compound fields, only the supported operators are
returned.- Added
optsfield toFlop.Metastruct.






















