config watcher
This commit is contained in:
1 parent
586f52ba56
commit
08af01dd11
12 files changed
+316
-124
No files matched your search
@@ -33,6 +33,10 @@ class AutomationDBConnection:
|
||||
def __init__(self, db_file: Path) -> None:
|
||||
self.db_file = db_file
|
||||
|
||||
def reset(self):
|
||||
self.db_file.unlink(missing_ok=True)
|
||||
self.create_db()
|
||||
|
||||
@contextmanager
|
||||
def get_cur(self) -> Iterator[sqlite3.Cursor]:
|
||||
conn = sqlite3.connect(self.db_file)
|
||||
|
||||
Reference in new issue
Block a user