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

Implement WithConnection for pgx driver #1156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GAlexIHU
Copy link

Contents

Implements WithConnection method for pgx driver

Notes for reviewer

As originally mentioned in this Issue calling .Close also closes the underlying pool not just the connection used which might not be desired in some cases.

The changes mirrors the implementation in the other drivers, e.g.
https://github.com/golang-migrate/migrate/blob/master/database/postgres/postgres.go#L68

@coveralls
Copy link

Coverage Status

coverage: 56.361% (+0.04%) from 56.319%
when pulling ce00133 on GAlexIHU:feat/pgx-withconn
into 555501f on golang-migrate:master.

@chrisgacsal
Copy link

chrisgacsal commented Oct 4, 2024

Hey @mattes @dhui! Sorry for poking you, but could you please take a look on this PR? Many thanks! 🙇🏻‍♂️

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.

5 participants