Module: SimpleSearch

Defined in:
lib/simple_search/exception.rb,
lib/simple_search/view_helper.rb,
lib/simple_search/active_record.rb

Defined Under Namespace

Modules: ActiveRecord, ViewHelper Classes: Error, Exception

Constant Summary collapse

OP_MAP =
{ :gt=>">", :ge=>">=", :lt=>"<", :le=>"<=", :eq=>"=", :ne=>"<>", :in=>"IN", 
  :bt=>"BETWEEN",    :between => "BETWEEN",
  :sw=>"LIKE",       :startswith => "LIKE",
  :ew=>"LIKE",       :endswith => "LIKE",
  :ct=>"LIKE",       :contains => "LIKE",    :like => "LIKE",
  :nc=>"NOT LIKE",   :notcontains => "NOT LIKE", :notlike=>"NOT LIKE",
  :is=>"IS", 
  :it=> 'IS NOT',    :isnot => "IS NOT"
}