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

:connection-uri with user and password qs times out #368

Open
danielzurawski opened this issue Oct 14, 2016 · 3 comments
Open

:connection-uri with user and password qs times out #368

danielzurawski opened this issue Oct 14, 2016 · 3 comments
Milestone

Comments

@danielzurawski
Copy link

Hello,
Using the 0.4.3 version of KormaSQL I am unable to configure it to connect to a database that requires user credentials using the following query string:

jdbc:postgresql://172.16.100.2:12001/dbname?user=dbuser&password=password

Using the same connection-uri, I seem to be able to connect just fine using HugSQL (which uses Hikari instead of c3p0 pooling lib like Korma does). Is this something that would need to be added to Korma or is there problem elsewhere?

Thanks!

@danielzurawski
Copy link
Author

danielzurawski commented Oct 14, 2016

Furthermore, passing the :user and :password in the config object to (postgres ) does not work, the connection still times out. The work around for now seems to be not to use the connection-uri and pass all (port host, db, user, password) in the object.

Edit: using another jdbc format: "jdbc:postgresql://dbuser:password@172.16.100.2:12001/dbname" also times out (which also works in the other library)

@danielzurawski danielzurawski changed the title JDBC :connection-uri support for user and password query string :connection-uri with user and password qs times out Oct 14, 2016
@immoh
Copy link
Member

immoh commented Oct 14, 2016

Looking at code for 0.4.3, I don't see any support for connection uri. Can you post code examples how you have tried?

Support for connection uri has been implemented in commit 527565d (not released yet) and I believe it should support user and password in uri as well. However, I am not 100% as there are no tests for this and I haven't tried myself.

@venantius
Copy link
Contributor

This will probably be resolved when 0.4.4 is released. I'll give it a milestone tag and we can close when that ships.

@venantius venantius added this to the 0.4.4 milestone Feb 27, 2018
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

3 participants