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

Support for pgx #21

Closed
Sh4d1 opened this issue Jan 29, 2021 · 2 comments
Closed

Support for pgx #21

Sh4d1 opened this issue Jan 29, 2021 · 2 comments
Labels

Comments

@Sh4d1
Copy link

Sh4d1 commented Jan 29, 2021

Hello,
We use GORM, and since v2, gorm now uses http://github.com/jackc/pgx which is not the pq that glock supports. Could it be possible to support pgx?

@ucirello
Copy link
Collaborator

@Sh4d1 - you can use the UnsafeNew call for what you want. As long as it is a database/sql compatible driver implementation (which pgx is), you should be good to go.

https://pkg.go.dev/cirello.io/pglock#UnsafeNew

@Sh4d1
Copy link
Author

Sh4d1 commented Jan 29, 2021

Ah nice! Thanks, will try 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants