perf: 完善启动时的Troubleshooting信息 #84

This commit is contained in:
Rock Chin
2023-01-04 12:01:26 +08:00
parent 6da11eded1
commit b318f6d4f0
2 changed files with 93 additions and 55 deletions

View File

@@ -28,6 +28,9 @@ class DatabaseManager:
# self.conn.isolation_level = None
self.cursor = self.conn.cursor()
def close(self):
self.conn.close()
def execute(self, *args, **kwargs) -> Cursor:
# logging.debug('SQL: {}'.format(sql))
c = self.cursor.execute(*args, **kwargs)