module Sequel::DataObjects::Postgres::DatabaseMethods
Methods to add to Database instances that access PostgreSQL via DataObjects.
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.
Calls superclass method
# File lib/sequel/adapters/do/postgres.rb, line 26 def self.extended(db) super db.send(:initialize_postgres_adapter) end
Private Instance Methods
setup_connection(conn)
click to toggle source
Extend the adapter with the DataObjects PostgreSQL AdapterMethods
Calls superclass method
# File lib/sequel/adapters/do/postgres.rb, line 34 def setup_connection(conn) conn = super(conn) connection_configuration_sqls.each{|sql| log_yield(sql){conn.create_command(sql).execute_non_query}} conn end