Module Sequel::JDBC::Postgres
In: lib/sequel/adapters/jdbc/postgresql.rb

Methods

Classes and Modules

Module Sequel::JDBC::Postgres::DatabaseMethods
Class Sequel::JDBC::Postgres::Dataset

Public Class methods

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.

[Source]

    # File lib/sequel/adapters/jdbc/postgresql.rb, line 20
20:       def self.RubyPGArray(r, i)
21:         if v = r.getArray(i)
22:           v.array.to_ary
23:         end
24:       end

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.

[Source]

    # File lib/sequel/adapters/jdbc/postgresql.rb, line 29
29:       def self.RubyPGHstore(r, i)
30:         if v = r.getObject(i)
31:           v.to_hash
32:         end
33:       end

[Validate]