-
Notifications
You must be signed in to change notification settings - Fork 55
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
Simplify connection string configuration #99
Simplify connection string configuration #99
Conversation
…ction-string-handling
ce85138
to
c36703e
Compare
Signed-off-by: Victor Perez <[email protected]>
} | ||
|
||
// Overrideable is an interface for defining ways to override PG settings | ||
// outside of the usual manners (through the connection string/URL or env vars). |
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.
@MetalBlueberry pgx supports both the key=value and URI right? I'm like 99% sure, just want to double check.
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.
https://github.com/jackc/pgx/blob/672c4a3a24849b1f34857817e6ed76f6581bbe90/pgconn/config.go#L161
here it is the documentation. It does
Instead of implementing custom logic to parse connection string, we can rely on jack/pgx library to parse it for us.