debug: 先输出再执行SQL

This commit is contained in:
Rock Chin
2022-12-13 00:06:19 +08:00
parent 3257d43cbc
commit 5c516dc2a1

View File

@@ -30,8 +30,8 @@ class DatabaseManager:
self.cursor = self.conn.cursor()
def execute(self, sql: str) -> Cursor:
c = self.cursor.execute(sql)
logging.debug('SQL: {}'.format(sql))
c = self.cursor.execute(sql)
self.conn.commit()
return c