Update db.py

This commit is contained in:
dami
2026-07-02 12:26:19 +08:00
parent 6f483c17e6
commit 2f782cf6a2
+5 -1
View File
@@ -335,9 +335,13 @@ class Sql():
except Exception as ex:
return "error: " + str(ex)
def commit(self):
def executemany(self, sql, args):
self.__DB_CONN.executemany(sql, args)
self.__close()
def commit(self):
self.__DB_CONN.commit()
self.__close()
def save(self, keys, param):
# 更新数据