Method: Array#sql_or

Defined in:
lib/sequel/core_sql.rb

#sql_orObject

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)


70
71
72
# File 'lib/sequel/core_sql.rb', line 70

def sql_or
  sql_expr_if_all_two_pairs(:OR)
end