module Sequel::JDBC::Postgres

Public Class Methods

RubyPGArray(r, i) click to toggle source

Return PostgreSQL array types as ruby Arrays instead of JDBC PostgreSQL driver-specific array type. Only used if the database does not have a conversion proc for the type.

# File lib/sequel/adapters/jdbc/postgresql.rb, line 19
def self.RubyPGArray(r, i)
  if v = r.getArray(i)
    v.array.to_ary
  end
end
RubyPGHstore(r, i) click to toggle source

Return PostgreSQL hstore types as ruby Hashes instead of Java HashMaps. Only used if the database does not have a conversion proc for the type.

# File lib/sequel/adapters/jdbc/postgresql.rb, line 28
def self.RubyPGHstore(r, i)
  if v = r.getObject(i)
    v.to_hash
  end
end