module Sequel::Postgres::PGRange::DatasetMethods

Public 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
309 def literal_other_append(sql, v)
310   case v
311   when Range
312     super(sql, Sequel::Postgres::PGRange.from_range(v))
313   else
314     super
315   end
316 end