Skip to content

Cannot connect using an URI #42

@katafrakt

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.

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