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

Feature suggestion: .paginated_stream/2 that mimics Repo.stream/2 #183

Open
jtomaszewski opened this issue Feb 28, 2023 · 1 comment
Open

Comments

@jtomaszewski
Copy link

jtomaszewski commented Feb 28, 2023

We've just created a similar library ( https://github.com/allegro/ecto-cursor-based-stream ) that adds a cursor_based_stream/2 function that mimics Repo.stream function.

Just afterwards we've noticed paginator exists. Perhaps we could add a similar function here, e.g. cursor_based_stream or paginated_stream, that returns all items as stream? Would you be interested in such a code contribution? Then our library wouldn't be much needed anymore.

@telphan
Copy link
Contributor

telphan commented Aug 7, 2023

@jtomaszewski I think this would be a great addition to paginator.

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

No branches or pull requests

2 participants