Parent

Class Index [+]

Quicksearch

Sequel::JDBC::Postgres::Dataset

Dataset subclass used for datasets that connect to PostgreSQL via JDBC.

Constants

APOS
PG_ARRAY_METHOD
PG_OBJECT_METHOD

Public Instance Methods

prepare(*args) click to toggle source

Add the shared PostgreSQL prepared statement methods

    # File lib/sequel/adapters/jdbc/postgresql.rb, line 77
77:         def prepare(*args)
78:           ps = super
79:           ps.extend(::Sequel::Postgres::DatasetMethods::PreparedStatementMethods)
80:           ps
81:         end

Private Instance Methods

convert_type_proc(v) click to toggle source

Handle PostgreSQL array and object types. Object types are just turned into strings, similarly to how the native adapter treats the types.

    # File lib/sequel/adapters/jdbc/postgresql.rb, line 88
88:         def convert_type_proc(v)
89:           case v
90:           when Java::OrgPostgresqlJdbc4::Jdbc4Array
91:             PG_ARRAY_METHOD
92:           when Java::OrgPostgresqlUtil::PGobject
93:             PG_OBJECT_METHOD
94:           else
95:             super
96:           end
97:         end
literal_string_append(sql, v) click to toggle source

Literalize strings similar to the native postgres adapter

     # File lib/sequel/adapters/jdbc/postgresql.rb, line 100
100:         def literal_string_append(sql, v)
101:           sql << APOS << db.synchronize{|c| c.escape_string(v)} << APOS
102:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.