获取所有支持的数据库模板
()
| 46 | |
| 47 | |
| 48 | def get_all_sql_templates(): |
| 49 | """获取所有支持的数据库模板""" |
| 50 | templates = {} |
| 51 | for db in DB: |
| 52 | try: |
| 53 | templates[db.type] = get_sql_template(db) |
| 54 | except FileNotFoundError: |
| 55 | # 如果某个数据库的模板文件不存在,跳过 |
| 56 | continue |
| 57 | return templates |
| 58 | |
| 59 | |
| 60 | def reload_all_templates(): |
nothing calls this directly
no test coverage detected