-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix(server): sslmode
not working
#15587
Conversation
5773454
to
9f7399a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please write some tests for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Can you add an error for an invalid ssl value as well?
There's an error for it already |
Sorry, I meant add a test for the error case. |
Oh, there is a test for it at the bottom |
Afaict this doesn't deal with sockets, the option |
|
I know, but it never sets
What I was missing though is that the postgres library checks for a slash in |
Go for it! I'm also happy to review any changes needed to support sockets if they still don't work. |
Where is it expecting your Mine fails when I set |
I don't think that we have ever supported verification even before kysely. |
Good to know I'm not crazy. In the docs, it's a bit ambiguous, made me feel like I was doing it wrong.
|
I believe you have to set |
Environment variables which correspond to the mounting? That sounds like the solution, although I'm not seeing it when I search the code in github so I'm still skeptical? |
No, these are query parameters in the DB_URL |
That makes sense. And thanks, that fixed my issue on top of this. |
* parse db url before passing it to the driver * don't be lazy * simplify * simplify * add tests * update sql sync script * update mock * remove unused import * remove unused imports
Description
Postgres.js has its own connection parsing logic that is not as robust as the previous driver. This PR uses the
pg-connection-string
library to do the parsing and passes the results to the Postgres.js driver.Fixes #15566