config watcher

This commit is contained in:
ari committed 2022-08-14 15:31:42 -04:00
1 parent 586f52ba56
commit 08af01dd11
12 files changed
+316 -124

No files matched your search

+4
View File
@@ -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)