- Notifications
You must be signed in to change notification settings - Fork 978
Open
Labels
Description
What do you want to change?
Free unicorns! And...
Currently, when I use a bunch of query methods (like q.SelectUnicorns()) and then just do the usual if err!=nil{return err }, then I'll have a hard time figuring out which of those caused the SQL error.
Therefore, I typically do
err:=q.SelectUnicorns()` iferr!=nil{returnfmt.Errorf("SelectUnicorns %w", err) }It would be nice if there was a feature toggle to enable this wrapping right within the generated code.
What database engines need to be changed?
No response
What programming language backends need to be changed?
Go
standy and diamondburned