-
Notifications
You must be signed in to change notification settings - Fork 873
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
pgx v5 beta 5 - CollectOneRow requires Rows, not Row #1300
Comments
This is intentional. I had previously considered it, but I think it is better taking
Potentially, the row = db.QueryRow(...)
err = pgx.CollectOneRow(row, ...) But at that point there is no conciseness advantage to using Since Another way of viewing it is Lastly, a |
Understood your point, thank you! |
Came across searching the same solution as OP. I believe this should be documented as the function names doesn't help clarify (in fact they contribute to the belief that this is doable) that we can't query and map a single row like with rows. Tks for the greate lib though! |
Hi, problem described in header
go.mod:
github.com/jackc/pgx/v5 v5.0.0-beta.5
The text was updated successfully, but these errors were encountered: