home
·
contact
·
privacy
projects
/
plomtask
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92d8450
)
Turn off DB autocommit.
master
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 5 Jan 2025 06:03:15 +0000
(07:03 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 5 Jan 2025 06:03:15 +0000
(07:03 +0100)
plomtask/db.py
patch
|
blob
|
history
diff --git
a/plomtask/db.py
b/plomtask/db.py
index e42bfcc3d498d8ab1f791a6e67b5debb31c0b398..b2e69f811e42c726da52968897baf5339565c8f0 100644
(file)
--- 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