Method: Array#sql_or
- Defined in:
- lib/sequel/extensions/core_extensions.rb
#sql_or ⇒ Object
Return a Sequel::SQL::BooleanExpression created from this array, matching any of the conditions.
[[:a, true]].sql_or # SQL: a IS TRUE
[[:a, 1], [:b, [2, 3]]].sql_or # SQL: a = 1 OR b IN (2, 3)
80 81 82 |
# File 'lib/sequel/extensions/core_extensions.rb', line 80 def sql_or Sequel.or(self) end |