-
Notifications
You must be signed in to change notification settings - Fork 22
Doesn't respect host in query parameters #14
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
Comments
I was just coming in here to note more or less the same issue. It is not just ephemeralpg; there are many cases for connecting to Postgres via unix domain sockets, and using the For now, you can work around this using the
I am thinking about a PR to better address @monteslu What do you think? |
b.t.w., the generic connection-string parses it fine. @tym-oao
I'm trying to get the driver to switch over to the generic connection-string, which doesn't have the issues described here. See the related issues:
If it finally happens, then |
This PR will fix it, if merged. And if that address represents a socket, then changing it into this:
will result in the host being set automatically: {
database: 'test',
host: '/tmp/ephemeralpg.goZMBg'
} And if your socket address complies with standard socket addresses, ending with '%2Ftmp%2Fephemeralpg.sock'
// {host: '/tmp/ephemeralpg.sock'}
'%2Ftmp%2Fephemeralpg.sock/test'
// {database: 'test', host: '/tmp/ephemeralpg.sock'} |
I believe this has been fixed in #34 |
Currently the following connection string doesn't get parsed properly:
It was generated by the tool ephemeralpg and seems to work with other client...
The text was updated successfully, but these errors were encountered: