Module: UState::QueryString::NotEquals1

Defined in:
lib/ustate/query_string.rb

Instance Method Summary collapse

Instance Method Details

#queryObject



895
896
897
# File 'lib/ustate/query_string.rb', line 895

def query
  Query::NotEquals.new field.sql, value.sql
end

#sqlObject



899
900
901
# File 'lib/ustate/query_string.rb', line 899

def sql
  Sequel::SQL::BooleanExpression.from_value_pairs({field.sql => value.sql}, :AND, true)
end