module Sequel::Postgres::PGRange::DatasetMethods

  1. lib/sequel/extensions/pg_range.rb

Methods

Public Instance

  1. literal_other_append

Public Instance methods

literal_other_append (sql, v)

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

[show source]
    # 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