-
Notifications
You must be signed in to change notification settings - Fork 0
feat(mixins): add iter_all to PaginationMixin #45
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
feat(mixins): add iter_all to PaginationMixin #45
Conversation
hhertoghe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments, thanks , looks good to me globally, I've asked Florian to take a look as well.
I guess we should only user iter_all in syncs when we know that we do not need to retrieve everything first ?
Makes it possible to iterate through a Generator instead of having to load all data in memory when calling all.
Adds the necessary overload to cover the different types of returns covered from our different mixins.
41e5429 to
fdeebcf
Compare
grasflorian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me :)
|
@hhertoghe @grasflorian should be good |
grasflorian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good !
Makes it possible to iterate through a Generator instead of having to
load all data in memory when calling all.