module Sequel::Postgres::PGRange::DatasetMethods

Private Instance Methods

literal_other_append(sql, v) click to toggle source

Handle literalization of ruby Range objects, treating them as PostgreSQL ranges.

Calls superclass method
    # File lib/sequel/extensions/pg_range.rb
297 def literal_other_append(sql, v)
298   case v
299   when Range
300     super(sql, Sequel::Postgres::PGRange.from_range(v))
301   else
302     super
303   end
304 end