mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-16 23:40:59 +00:00
debug: 先输出再执行SQL
This commit is contained in:
@@ -30,8 +30,8 @@ class DatabaseManager:
|
|||||||
self.cursor = self.conn.cursor()
|
self.cursor = self.conn.cursor()
|
||||||
|
|
||||||
def execute(self, sql: str) -> Cursor:
|
def execute(self, sql: str) -> Cursor:
|
||||||
c = self.cursor.execute(sql)
|
|
||||||
logging.debug('SQL: {}'.format(sql))
|
logging.debug('SQL: {}'.format(sql))
|
||||||
|
c = self.cursor.execute(sql)
|
||||||
self.conn.commit()
|
self.conn.commit()
|
||||||
return c
|
return c
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user