接口优化
This commit is contained in:
@@ -190,6 +190,7 @@ class DatabaseService:
|
||||
"""获取所有表名"""
|
||||
try:
|
||||
inspector = inspect(engine)
|
||||
return inspector.get_table_names()
|
||||
# 排除mysql的系统表和accounts表
|
||||
return [table for table in inspector.get_table_names() if not table.startswith('mysql') and table != 'accounts']
|
||||
except Exception as e:
|
||||
return []
|
||||
Reference in New Issue
Block a user