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
feat: add context manager support to Connection class
Add __enter__ and __exit__ methods to Connection for use with Python's
`with` statement. This enables automatic connection cleanup, particularly
useful for serverless environments (AWS Lambda, Cloud Functions).
Usage:
with dj.Connection(host, user, password) as conn:
schema = dj.schema('my_schema', connection=conn)
# perform operations
# connection automatically closed
Closes#1081
Co-Authored-By: Claude Opus 4.5 <[email protected]>
0 commit comments