mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
debug: 先输出再执行SQL
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user