lib/getto/repository/sequel/search.rb in getto-repository-sequel-1.0.2 vs lib/getto/repository/sequel/search.rb in getto-repository-sequel-1.1.0

- old
+ new

@@ -62,9 +62,17 @@ def eq(column) ->(value){ { column => value } } end + def gteq(column) + ->(value){ ::Sequel.lit("? >= ?", column, value) } + end + + def lteq(column) + ->(value){ ::Sequel.lit("? <= ?", column, value) } + end + def is_not_null(column,map) ->(value){ if map.has_key?(value) if map[value] ::Sequel.~(column => nil)