Module: ActivePostgrest::SqlBuilder
- Included in:
- Relation
- Defined in:
- lib/active_postgrest/sql_builder.rb
Constant Summary collapse
- FILTER_OPS =
{ 'eq' => '=', 'neq' => '!=', 'gt' => '>', 'gte' => '>=', 'lt' => '<', 'lte' => '<=', 'like' => 'LIKE', 'ilike' => 'ILIKE', 'fts' => '@@', 'cs' => '@>', 'cd' => '<@' }.freeze
- NEGATED_OPS =
{ 'eq' => '!=', 'neq' => '=', 'gt' => '<=', 'gte' => '<', 'lt' => '>=', 'lte' => '>', 'like' => 'NOT LIKE', 'ilike' => 'NOT ILIKE' }.freeze
- KNOWN_OP_KEYS =
(FILTER_OPS.keys + %w[not in is]).freeze