module Sequel::EmptyArrayConsiderNulls

  1. lib/sequel/extensions/empty_array_consider_nulls.rb

Methods

Public Instance

  1. empty_array_value

Public Instance methods

empty_array_value(op, cols)

Use an expression that returns NULL if the column value is NULL.

[show source]
   # File lib/sequel/extensions/empty_array_consider_nulls.rb
31 def empty_array_value(op, cols)
32   c = Array(cols)
33   SQL::BooleanExpression.from_value_pairs(c.zip(c), :AND, op == :IN)
34 end