-
-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to maintained jackc/pgx driver (#562)
This patch moves to the maintained `jackc/pgx` driver for connections to PostgreSQL. `lib/pq` is not really maintained any more and has several bugs, which is why `lib/pq` itself recommends using `jackc/pgx` (https://github.com/lib/pq#status). `jackc/pgx` takes care of all runtime parameters (connect_timeout, sslcert, sslmode, sslkey, ...) for us and does not expose them any more which is why they have been removed from the connection options. This may be seen as a breaking change for some. However, things like `connect_timeout` now actually have an effect as opposed to `lib/pq`. Also, some defaults have changed which required changing some of the tests. A CI bug was fixed which referenced the service host (in GitHub Actions) as `${{job.services.postgres.host}}` even though the host is always `127.0.0.1` and no such parameter actually exists in GitHub actions (see https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idservices). Please note that the `slices` module still uses `lib/pq` to Scan/Value `[]string`. Closes #559 Signed-off-by: aeneasr <[email protected]>
- Loading branch information
Showing
14 changed files
with
178 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.