Emit ErrNoRows in many queries #3787
Unanswered
lawmatsuyama
asked this question in
Q&A
Replies: 1 comment
-
For PostgreSQL, a
This will return a ErrNoRows from pgx or database/sql. What database are you using? Can you post the generated code for your query? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I have the following query that I want to generate with sqlc:
The code generated by sqlc does not return an error like ErrNoRows when the query returns no rows. Is it possible to force it to return ErrNoRows when there are no records?
Beta Was this translation helpful? Give feedback.
All reactions