Add streaming of :many via chan
and/or callback func
#1229
-
I noticed that Another idea is a |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
A |
Beta Was this translation helpful? Give feedback.
-
True, the callback would allow one to implement streaming. I thought it's a bit much ceremony at the moment to do it in every callback, with |
Beta Was this translation helpful? Give feedback.
-
Today I was looking for a way to make sqlc to support streaming a large amount of data from a query to gRPC. I found the related issues and this discussion. To me a simple callback option seems like the best way to do it. |
Beta Was this translation helpful? Give feedback.
-
I've just ran into this. I'm working on some maintenance work on a database and I don't know how many rows I get back. Could be 1K or 1M. I really love sqlc and the correctness it brings. It would be really amazing to have a callback that would get fired off for each row. |
Beta Was this translation helpful? Give feedback.
-
Given the new |
Beta Was this translation helpful? Give feedback.
-
What's the status here? |
Beta Was this translation helpful? Give feedback.
Given the new
iter
package proposal (golang/go#61897) is likely to move forward, I think we won't want to add functionality until we know how to integrate with that package.