class Sequel::Postgres::RangeOp

  1. lib/sequel/extensions/pg_range_ops.rb
Superclass: Sequel::SQL::Wrapper

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.

Methods

Public Instance

  1. pg_range

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