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
287 def literal_other_append(sql, v)
288   case v
289   when Range
290     super(sql, Sequel::Postgres::PGRange.from_range(v))
291   else
292     super
293   end
294 end