sqlc sqlite and go routines #1883
Unanswered
mrjawright
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
is there anything special that needs to be done to use the generated code in a go routine?
I'm doing an asynchronous proof-of-concept using go routines and channels, and I keep getting 'no such table' errors when ever I try to read from the returned channels.
in my main.go, I call the async function:
Then, later, I check the channels:
But, when it runs, I get
no such table: users
event though I can query the table and pull back all the rows outside of a go routine.Beta Was this translation helpful? Give feedback.
All reactions