Module: Sequel::Postgres::PGRange::DatasetMethods

Defined in:
lib/sequel/extensions/pg_range.rb

Instance Method Summary collapse

Instance Method Details

#literal_other_append(sql, v) ⇒ Object

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



296
297
298
299
300
301
302
303
# File 'lib/sequel/extensions/pg_range.rb', line 296

def literal_other_append(sql, v)
  case v
  when Range
    super(sql, Sequel::Postgres::PGRange.from_range(v))
  else
    super
  end
end