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

Methods to add to Database instances that access PostgreSQL via JDBC.

Methods

Included Modules

Sequel::Postgres::DatabaseMethods

Public Class methods

Add the primary_keys and primary_key_sequences instance variables, so we can get the correct return values for inserted rows.

[Source]

    # File lib/sequel/adapters/jdbc/postgresql.rb, line 43
43:         def self.extended(db)
44:           db.instance_eval do
45:             @primary_keys = {}
46:             @primary_key_sequences = {}
47:           end
48:         end

Public Instance methods

Return instance of Sequel::JDBC::Postgres::Dataset with the given opts.

[Source]

    # File lib/sequel/adapters/jdbc/postgresql.rb, line 51
51:         def dataset(opts=nil)
52:           Sequel::JDBC::Postgres::Dataset.new(self, opts)
53:         end

Run the INSERT sql on the database and return the primary key for the record.

[Source]

    # File lib/sequel/adapters/jdbc/postgresql.rb, line 57
57:         def execute_insert(sql, opts={})
58:           super(sql, {:type=>:insert}.merge(opts))
59:         end

[Validate]