From: Christian Heller <c.heller@plomlompom.de>
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/static/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/day?a=commitdiff_plain;h=8148353bc888f3909cb4616cd162ce034809e7a6;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