You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Iterable cursors are cursors that are used directly as iterator rather than an object that calling fetch(), so
# cursor with manual control
# prefetch doesn't make sense, because
# you specify the number of rows fetched explicitly
# every time
cursor = await conn.cursor(sql)
rows = await cursor.fetch(100)
# iterable cursor
# runs "fetch(100)" behind the scenes on every
# 100th iteration.
async for record in conn.cursor(sql, prefetch=100):
...
When running
I am getting error
Looking into the documentation, I cannot find anything about iterable cursors. How do I declare them?
The text was updated successfully, but these errors were encountered: