home · contact · privacy
Turn off DB autocommit. master
authorChristian Heller <c.heller@plomlompom.de>
Sun, 5 Jan 2025 06:03:15 +0000 (07:03 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 5 Jan 2025 06:03:15 +0000 (07:03 +0100)
plomtask/db.py

index e42bfcc3d498d8ab1f791a6e67b5debb31c0b398..b2e69f811e42c726da52968897baf5339565c8f0 100644 (file)
@@ -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