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

Add WithConnection for pgx and pgx5 #2

Merged
merged 1 commit into from Sep 29, 2023
Merged

Conversation

bclarkx2
Copy link

@bclarkx2 bclarkx2 commented Sep 21, 2023

Enable consumers to provide an existing *sql.DB with the option to close the connection without closing the underlying *sql.DB instance.

See golang-migrate#659 for a change doing the same for the lib/pq database driver, and golang-migrate#583 for MySQL.

Tests verified locally with:
make test-short DATABASE='pgx pgx5'

@bclarkx2 bclarkx2 marked this pull request as ready for review September 21, 2023 17:34
Copy link

@jonathansharman jonathansharman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matches the pattern and LGTM 👍

@bclarkx2 bclarkx2 merged commit e3a73d1 into master Sep 29, 2023
6 of 10 checks passed
@bclarkx2 bclarkx2 deleted the feature/pgx-with-connection branch September 29, 2023 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants