Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect using an URI #42

Open
katafrakt opened this issue Dec 14, 2018 · 2 comments
Open

Cannot connect using an URI #42

katafrakt opened this issue Dec 14, 2018 · 2 comments

Comments

@katafrakt
Copy link

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.

@katafrakt
Copy link
Author

BTW I think I could work on this, but I'm not sure this project is maintained. Also, it targets ruby-pg 0.17.1, while we have 1.1.4 now. What's the status here?

@headius
Copy link
Owner

headius commented Sep 1, 2019

The project is dormant mostly because we had a large contribution of code from a few users and then they moved on. It's also not needed by ActiveRecord or Sequel, so most effort has gone toward supporting those better.

That said, I'd like to see the work already done here become more useful, and some users do go directly to the PG API for database access. What we have here is functional for the time it was written, but has fallen behind the Ruby C extension and likely the native "libpg" we are trying to emulate. First steps would largely be assessing what we have and what we are missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants