Class Sequel::JDBC::Postgres::Dataset
In: lib/sequel_core/adapters/jdbc/postgresql.rb
Parent: JDBC::Dataset

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

Methods

literal   prepare  

Included Modules

Sequel::Postgres::DatasetMethods

Public Instance methods

Convert Java::JavaSql::Timestamps correctly, and handle Strings similar to the native postgres adapter.

[Source]

     # File lib/sequel_core/adapters/jdbc/postgresql.rb, line 96
 96:         def literal(v)
 97:           case v
 98:           when LiteralString
 99:             v
100:           when SQL::Blob
101:             super
102:           when String
103:             db.synchronize{|c| "'#{c.escape_string(v)}'"}
104:           when Java::JavaSql::Timestamp
105:             "TIMESTAMP #{literal(v.to_s)}"
106:           else
107:             super
108:           end
109:         end

Add the shared PostgreSQL prepared statement methods

[Source]

    # File lib/sequel_core/adapters/jdbc/postgresql.rb, line 88
88:         def prepare(*args)
89:           ps = super
90:           ps.extend(::Sequel::Postgres::DatasetMethods::PreparedStatementMethods)
91:           ps
92:         end

[Validate]