Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
Signed-off-by: Sarad Mohanan <[email protected]>
  • Loading branch information
sar009 committed Nov 29, 2023
1 parent fe49f40 commit 933a393
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data_diff/databases/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,9 @@ class Database(abc.ABC):
is_closed: bool = False
_dialect: BaseDialect = None

def __enter__(self):
return self

def __exit__(self, exc_type, exc_value, traceback):
self.close()

Expand Down

0 comments on commit 933a393

Please sign in to comment.