Filtrex v0.3.0 Filtrex.Params

Filtrex.Params is a module that parses parameters similar to Phoenix, such as:

%{"due_date_between" => %{"start" => "2016-03-10", "end" => "2016-03-20"}, "text_column" => "Buy milk"}

Summary

Functions

Converts parameters to a list of conditions

Converts a string-key map to atoms from whitelist

Functions

parse_conditions(configs, params)

Converts parameters to a list of conditions

sanitize(map, whitelist)

Converts a string-key map to atoms from whitelist