# File lib/jdbc_adapter/jdbc_postgre.rb, line 9 def postgresql_connection(config) require File.dirname(__FILE__) + "/../active_record/connection_adapters/postgresql_adapter" config[:host] ||= "localhost" config[:port] ||= 5432 config[:url] ||= "jdbc:postgresql://#{config[:host]}:#{config[:port]}/#{config[:database]}" config[:url] << config[:pg_params] if config[:pg_params] config[:driver] ||= "org.postgresql.Driver" jdbc_connection(config) end