The RangeOp
class is a simple container for a single object that defines methods that yield Sequel
expression objects representing PostgreSQL range operators and functions.
Most methods in this class are defined via metaprogramming, see the pg_range_ops extension documentation for details on the API.
Constants
OPERATORS | = | { :contains => ["(".freeze, " @> ".freeze, ")".freeze].freeze, :contained_by => ["(".freeze, " <@ ".freeze, ")".freeze].freeze, :left_of => ["(".freeze, " << ".freeze, ")".freeze].freeze, :right_of => ["(".freeze, " >> ".freeze, ")".freeze].freeze, :ends_before => ["(".freeze, " &< ".freeze, ")".freeze].freeze, :starts_after => ["(".freeze, " &> ".freeze, ")".freeze].freeze, :adjacent_to => ["(".freeze, " -|- ".freeze, ")".freeze].freeze, :overlaps => ["(".freeze, " && ".freeze, ")".freeze].freeze, }.freeze |
Public Instance methods
pg_range()
Return the receiver.
[show source]
# File lib/sequel/extensions/pg_range_ops.rb 110 def pg_range 111 self 112 end