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

Replace lib/pq with pgx #627

Merged
merged 23 commits into from Aug 14, 2021
Merged

Replace lib/pq with pgx #627

merged 23 commits into from Aug 14, 2021

Conversation

xiam
Copy link
Member

@xiam xiam commented Mar 21, 2021

This PR replaces the lib/pq driver with the pgx driver. It also changes code around automatic type conversions which was required to facilitate said migration.

@pkieltyka
Copy link
Member

What do you think if it’s possible to remove dependency on lib/pq? I noticed here it’s still being used for custom types — https://github.com/upper/db/blob/issue-621_pgx-driver-for-postgresql/adapter/postgresql/custom_types.go#L30

perhaps that is fine though? Or.. should we update the custom type code to use pgx.. it would require a lot of what lib/pq does to move here, I’m not sure it makes a difference .. lmk what you think

@xiam
Copy link
Member Author

xiam commented Mar 23, 2021

@pkieltyka Yes, that's for now because we're using those types for tests, but the goal is to remove all lib/pq dependencies.

@xiam xiam force-pushed the issue-621_pgx-driver-for-postgresql branch from 8af4bb1 to 2dac4f3 Compare June 29, 2021 23:20
@xiam xiam changed the title WIP: replace lib/pq with pgx Replace lib/pq with pgx Jul 8, 2021
@xiam xiam marked this pull request as draft July 8, 2021 19:21
@xiam xiam force-pushed the issue-621_pgx-driver-for-postgresql branch from 4ce5abd to c165aee Compare July 13, 2021 13:45
@xiam xiam marked this pull request as ready for review August 8, 2021 02:22
@xiam
Copy link
Member Author

xiam commented Aug 14, 2021

This has been working fine for a while. Let's merge into master, we'll include this on the next release.

@xiam xiam merged commit 9b9ecf1 into master Aug 14, 2021
@xiam xiam deleted the issue-621_pgx-driver-for-postgresql branch August 14, 2021 11:04
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