databases icon indicating copy to clipboard operation
databases copied to clipboard

feature request: iterate over more than 1 record

Open databasedav opened this issue 4 years ago • 1 comments

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

databasedav avatar Oct 27 '21 00:10 databasedav

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

sobolevn avatar May 31 '22 11:05 sobolevn