From 8148353bc888f3909cb4616cd162ce034809e7a6 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 5 Jan 2025 07:03:15 +0100 Subject: [PATCH] Turn off DB autocommit. --- plomtask/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plomtask/db.py b/plomtask/db.py index e42bfcc..b2e69f8 100644 --- a/plomtask/db.py +++ b/plomtask/db.py @@ -158,7 +158,7 @@ class DatabaseConnection: """A single connection to the database.""" def __init__(self, db_file: DatabaseFile) -> None: - self._conn = sql_connect(db_file.path) + self._conn = sql_connect(db_file.path, autocommit=False) self.commit = self._conn.commit self.close = self._conn.close -- 2.30.2