- NUMERIC_COMPARATORS =
[
'=',
'>=',
'<=',
'>',
'<',
'!=',
'BETWEEN'
].freeze
- STRING_COMPARATORS =
{
:contains => '%?%',
:begins_with => '?%',
:ends_with => '%?',
:doesnt_contain => 'not_%?%',
:doesnt_begin_with => 'not_?%',
:doesnt_end_with => 'not_%?'
}.freeze
- NULL_COMPARATORS =
%w[null not_null].freeze
- DATE_COMPARATORS =
%w[PAST FUTURE RANGE].freeze
- DATE_UNITS =
%w[DAYS WEEKS MONTHS YEARS].freeze
- TIME_UNITS =
%w[SECONDS MINUTES HOURS].freeze
- DATE_RANGES =
%w[TODAY YESTERDAY TOMORROW THIS_WEEK PREV_WEEK NEXT_WEEK THIS_MONTH PREV_MONTH NEXT_MONTH THIS_YEAR PREV_YEAR NEXT_YEAR].freeze