We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With
In dbapi.py, i notice that Connection class DO have __enter__, __exit__, but Cursor class does not.
Connection
__enter__
__exit__
Cursor
not
Is there a reason for why it doesn't have those classes? so that users can use with with statement?
with
with connection.cursor() as cursor: cursor.execute("SELECT * FROM table") results = cursor.fetchall()
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the feature
In dbapi.py, i notice that
Connection
class DO have__enter__
,__exit__
, butCursor
class doesnot
.Is there a reason for why it doesn't have those classes? so that users can use with
with
statement?Describe alternatives you've considered
No response
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: