MCPcopy Index your code
hub / github.com/dataease/SQLBot / get_all_sql_templates

Function get_all_sql_templates

backend/apps/template/template.py:48–57  ·  view source on GitHub ↗

获取所有支持的数据库模板

()

Source from the content-addressed store, hash-verified

46
47
48def 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
60def reload_all_templates():

Callers

nothing calls this directly

Calls 1

get_sql_templateFunction · 0.70

Tested by

no test coverage detected