-
Notifications
You must be signed in to change notification settings - Fork 213
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
exec.Scanner: New exposed scanner supports iterative scanning #157
Conversation
A Scanner that is modeled after sql.Rows Next and Scan. This can be used when scanning one item at a time for better memory efficiency on large result sets.
Thanks for the contribution! I know not a lot of files were changed but they some of the more complex parts Give me a couple of days to go through them. |
Thanks @doug-martin! And thank you for an awesome package by the way! |
@akarl I just opened v9.2.0 which has your changes in there! Great work diving in and figuring out how to add this. I changed a few things to clean up some code and removed some dead code paths. Awesome job! |
Awesome! Thank you! |
released! |
A Scanner that is modeled after sql.Rows Next and Scan. This can be used when scanning one item at a time for better memory efficiency on large result sets.
I'm a bit unsure about the
db.From().Select().Executor().Scanner()
way of getting it when coming from aSelectDataset
but I think that this wouldn't be used so often as to warrant a method directly on theSelectDataset
.Let me know what you think!