Sha256: 3f818e1b6a29ba3c4cbd3e91f9200994a2494e1af171008abaec365de5bb462a
Contents?: true
Size: 1.13 KB
Versions: 9
Compression:
Stored size: 1.13 KB
Contents
module Rasti module DB module NQL module FilterConditionStrategies module Types class Generic def self.equal(identifier, value) {identifier => value} end def self.not_equal(identifier, value) Sequel.negate equal(identifier, value) end def self.greater_than(identifier, value) identifier > value end def self.greater_than_or_equal(identifier, value) identifier >= value end def self.less_than(identifier, value) identifier < value end def self.less_than_or_equal(identifier, value) identifier <= value end def self.like(identifier, value) Sequel.ilike identifier, value end def self.include(identifier, value) Sequel.ilike identifier, "%#{value}%" end def self.not_include(identifier, value) ~include(identifier, value) end end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems