# File lib/jdbc_adapter/jdbc_postgre.rb, line 7 def postgresql_connection(config) 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