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

Support context manager for connection and cursor in dbapi #47

Open
rekby opened this issue May 31, 2024 · 1 comment
Open

Support context manager for connection and cursor in dbapi #47

rekby opened this issue May 31, 2024 · 1 comment
Labels
dbapi enhancement New feature or request good first issue Good for newcomers

Comments

@rekby
Copy link
Member

rekby commented May 31, 2024

It should return self on __enter__ and call close method on __exit__

with cursor:
   ...
@rekby rekby added enhancement New feature or request dbapi good first issue Good for newcomers labels May 31, 2024
@c0d33ngr
Copy link

c0d33ngr commented Jun 15, 2024

I would love to work on this @rekby
To get you right, you mean adding context manager feature to Cursor and Connection classes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dbapi enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants