From: Christian Heller Date: Sun, 5 Jan 2025 06:03:15 +0000 (+0100) Subject: Turn off DB autocommit. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/error?a=commitdiff_plain;p=plomtask Turn off DB autocommit. --- 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