diff options
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/db/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gn3/db/__init__.py b/gn3/db/__init__.py index ea800c1..149a344 100644 --- a/gn3/db/__init__.py +++ b/gn3/db/__init__.py @@ -60,6 +60,7 @@ def update(conn: Any, with conn.cursor() as cursor: cursor.execute(sql, tuple(data_.values()) + tuple(where_.values())) + conn.commit() return cursor.rowcount @@ -122,6 +123,7 @@ def insert(conn: Any, sql += ")" with conn.cursor() as cursor: cursor.execute(sql, tuple(dict_.values())) + conn.commit() return cursor.rowcount |