Skip to content

Cannot connect using an URI #42

Description

@katafrakt

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions