In pg I can do this:
PG::Connection.open('postgres://postgres:password@localhost/test')
However in jruby-pg if the argument is a string, it expects it to be pairs of key=value and fails with error indicating wrong number of arguments.
Connecting via URI is useful when you share configuration between PG and, for example, Sequel.
In
pgI can do this:However in
jruby-pgif the argument is a string, it expects it to be pairs of key=value and fails with error indicating wrong number of arguments.Connecting via URI is useful when you share configuration between PG and, for example, Sequel.