Method: Hash#sql_or
- Defined in:
- lib/sequel/core_sql.rb
#sql_or ⇒ Object
Return a Sequel::SQL::BooleanExpression created from this hash, 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)
169 170 171 |
# File 'lib/sequel/core_sql.rb', line 169 def sql_or ::Sequel::SQL::BooleanExpression.from_value_pairs(self, :OR) end |