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
yambottle
changed the title
Creating connection object with python context manager
Python context manager raises error to close the connection object
Mar 14, 2024
yambottle
changed the title
Python context manager raises error to close the connection object
Python context manager raises error with datajoint connection object
Mar 14, 2024
AFAIK, dj.Connection does not implement a context manager. So this issue is a feature request to add context manager functionality to dj.Connection, not a bug fix.
Bug Report
Description
Datajoint connection cannot be defined with the python
with
, and usingwith
is the regular way to make sure a connection is closed afterdj.conn()
.Reproducibility
Include:
Expected Behavior
Using
with
to create a datajoint db connection, and close the connection at the end of thewith
clause.The text was updated successfully, but these errors were encountered: