()
| 3 | import sys |
| 4 | |
| 5 | def get_database_json(): |
| 6 | # 读取databases.json的内容 |
| 7 | db_json_path = '/www/server/panel/config/databases.json' |
| 8 | with open(db_json_path, 'r', encoding='utf-8') as f: |
| 9 | return json.load(f) |
| 10 | |
| 11 | def create_table_if_not_exists(db_obj, table_name, create_table_sql): |
| 12 | # 尝试创建表,如果表不存在 |
no test coverage detected