module Sequel::Swift::Postgres::DatabaseMethods

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

Public Class Methods

extended(db) click to toggle source

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

# File lib/sequel/adapters/swift/postgres.rb, line 16
def self.extended(db)
  db.instance_eval do
    @primary_keys = {}
    @primary_key_sequences = {}
  end
end