Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

akarl
Copy link
Contributor

@akarl akarl commented Sep 16, 2019

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 a SelectDataset but I think that this wouldn't be used so often as to warrant a method directly on the SelectDataset.

Let me know what you think!

select_dataset_example_test.go Outdated Show resolved Hide resolved
select_dataset_example_test.go Outdated Show resolved Hide resolved
internal/util/reflect.go Outdated Show resolved Hide resolved
exec/query_executor.go Show resolved Hide resolved
exec/query_executor.go Show resolved Hide resolved
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.
@doug-martin
Copy link
Owner

Thanks for the contribution! I know not a lot of files were changed but they some of the more complex parts goqu.

Give me a couple of days to go through them.

@akarl
Copy link
Contributor Author

akarl commented Sep 18, 2019

Thanks @doug-martin! And thank you for an awesome package by the way!

doug-martin added a commit that referenced this pull request Sep 23, 2019
* [ADDED] exec.Scanner: New exposed scanner supports iterative scanning #157 - @akarl
@doug-martin doug-martin mentioned this pull request Sep 23, 2019
@doug-martin
Copy link
Owner

@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!

@akarl
Copy link
Contributor Author

akarl commented Sep 23, 2019

Awesome! Thank you!

doug-martin added a commit that referenced this pull request Sep 23, 2019
* [ADDED] exec.Scanner: New exposed scanner supports iterative scanning #157 - @akarl
doug-martin added a commit that referenced this pull request Sep 23, 2019
* [ADDED] exec.Scanner: New exposed scanner supports iterative scanning #157 - @akarl
doug-martin added a commit that referenced this pull request Sep 23, 2019
* [ADDED] exec.Scanner: New exposed scanner supports iterative scanning #157 - @akarl
doug-martin added a commit that referenced this pull request Sep 23, 2019
* [ADDED] exec.Scanner: New exposed scanner supports iterative scanning #157 - @akarl
@doug-martin
Copy link
Owner

released!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants