Skip to content

add with support to Python cursor #208

Closed

Description

@larkost

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:

with r.db('foo').table('bar').run(conn) as full_table:
     for row in full_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

  1. added this to the milestone on May 25, 2020
  2. removed this from the milestone on Sep 29, 2021
  3. gabor-boros commented on Nov 16, 2026

    @gabor-boros
    Member

    Implemented by #277.

    Screenshot 2026-11-16 at 17 26 23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions