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

Switch from unmaintained lib/pq driver to pgx with stdlib wrapper #52

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

ringerc
Copy link
Collaborator

@ringerc ringerc commented Jun 19, 2024

Driver github.com/lib/pq states that it is in maintenance mode.

pgx offers built-in connection pooling and much more, and is actively maintained.

The default URI postgresql:///?sslmode=disable will work out of the box with a unix socket connection, or one can be specified with e.g. -u 'postgres://postgres@:/?sslmode=disable&host=/var/run/postgresql'

It's possible that some driver-specific options may vary, so this merits more testing. It should be possible to make it a CLI option and mark lib/pq deprecated rather than switching immediately, if that is deemed necessary.

Driver github.com/lib/pq states that it is in maintenance mode.

pgx offers built-in connection pooling and much more, and is actively
maintained.

The default URI postgresql:///?sslmode=disable will work out of the box
with a unix socket connection, or one can be specified with e.g.
-u 'postgres://postgres@:/?sslmode=disable&host=/var/run/postgresql'

It's possible that some driver-specific options may vary, so this
merits more testing. It should be possible to make it a CLI option
and mark lib/pq deprecated rather than switching immediately, if that
is deemed necessary.
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

Successfully merging this pull request may close these issues.

None yet

2 participants