-
Notifications
You must be signed in to change notification settings - Fork 68
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
Are there any plans to support pgx v5? #88
Comments
Hi. Thank you for bringing this up. |
@georgysavva |
Hello, @georgysavva, In Thanks for the library 👍 |
Yeah, supporting
How to do the transaction gracefully. To ensure backward compatibility of scany API, it would need to be cc: @jnst, @Edwing123 |
@georgysavva I depend on this (awesome) project too and I would really love to see pgx v5 support. With Go 1.19 being the latest version now, personally I am not too concerned with dropping support for Go < 1.18. However, because the APIs for pgx have changed a lot and are incompatible, perhaps releasing scany v2 would not be a bad idea regardless. Then, scany "v1" would continue to work with pgx v4. |
Yes, releasing |
Let's go with the I just check the pgx repo and it says that |
I wonder if releasing |
Well, September is almost here, in my case, I wouldn't mind waiting for |
Then let's wait for the stable |
@georgysavva pgx v5 now have a built-in method Examples:Many rows:
Single row:
Warning: fields in struct and row must be in the same orderingKeep it in mind that there's no QueryRow() for single value, because maintainer (@jackc) recommend to use Query() rather than QueryRow() |
seems like pgx v5 got released: https://github.com/jackc/pgx/releases/tag/v5.0.0 |
Guys, it can probably take a while so I would appreciate creating a v2-dev branch so we could start using the first version and report errors. Pgx v5 is a big milestone for those who want to incorporate OpenTelemetry :-) |
Since pgx v5 contains breaking changes (supports go 1.18+ only) this package also needs to have a version bump - v2 Fixes: #88
Here everyone. I created a pre-release for Please test it out a little bit, and if everything is fine, I will make the stable release. |
it looks like |
Here is the new pre-release of
|
Hi guys! Since no one has reported any issues with the
Thank you to everyone who participated in the transition, and especially to @vadimi, who took the initiative from the beginning till the end! Feel free to reopen this issue or create a new one if something is wrong with |
Works fine for our use case, but we barely scratch the surface of the features. Just few tables and the most complex code is actually storing a single JSONB field :-) Thanks! |
In a month or so,
pgx v5
will be officially released.Here are the commits I supported v5 for reference.
pgx v5
requiresgo 1.18
or higher. do you plan to support this inscany
?The text was updated successfully, but these errors were encountered: