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
The Connection class in the Python driver currently supports the Python with structure, but our Cursor class does not. I just ran into a case where it would be nice to have this. An example for clarity:
withr.db('foo').table('bar').run(conn) asfull_table:
forrowinfull_table:
pass# do something in reality
While our Cursors are not that expensive, it does make sure that things get cleaned up on-time.
Activity
Added support for Cursor in python driver (#5768) (#5789)
Added support for Cursor in python driver (#5768) (#5789)
gabor-boros commentedon Nov 16, 2026
Implemented by #277.