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 request: iterate over more than 1 record #413

Open
databasedav opened this issue Oct 27, 2021 · 1 comment · May be fixed by #473
Open

feature request: iterate over more than 1 record #413

databasedav opened this issue Oct 27, 2021 · 1 comment · May be fixed by #473
Labels
feature New feature or request

Comments

@databasedav
Copy link

databasedav commented Oct 27, 2021

something like this

async for rows in database.iterate(query, values, n=10):
    rows

where rows would have 10 rows until there is <10 to be returned and it would simply return the rest

@aminalaee aminalaee added the feature New feature or request label Oct 27, 2021
@Mng-dev-ai Mng-dev-ai linked a pull request Mar 6, 2022 that will close this issue
@sobolevn
Copy link
Contributor

I think that a proper way to do that is to use something like https://aioitertools.omnilib.dev/en/stable/api.html#aioitertools.itertools.islice

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

Successfully merging a pull request may close this issue.

3 participants