Method: Array#sql_negate
- Defined in:
- lib/sequel/extensions/core_extensions.rb
#sql_negate ⇒ Object
Return a Sequel::SQL::BooleanExpression created from this array, matching none of the conditions.
[[:a, true]].sql_negate # SQL: a IS NOT TRUE
[[:a, 1], [:b, [2, 3]]].sql_negate # SQL: a != 1 AND b NOT IN (2, 3)
71 72 73 |
# File 'lib/sequel/extensions/core_extensions.rb', line 71 def sql_negate Sequel.negate(self) end |