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

Function get_extra_config

backend/apps/db/db.py:98–108  ·  view source on GitHub ↗
(conf: DatasourceConf)

Source from the content-addressed store, hash-verified

96
97
98def get_extra_config(conf: DatasourceConf):
99 config_dict = {}
100 if conf.extraJdbc:
101 config_arr = conf.extraJdbc.split("&")
102 for config in config_arr:
103 kv = config.split("=")
104 if len(kv) == 2 and kv[0] and kv[1]:
105 config_dict[kv[0]] = kv[1]
106 else:
107 raise Exception(f'param: {config} is error')
108 return config_dict
109
110
111def get_origin_connect(type: str, conf: DatasourceConf):

Callers 7

get_origin_connectFunction · 0.85
check_connectionFunction · 0.85
get_versionFunction · 0.85
get_schemaFunction · 0.85
get_tablesFunction · 0.85
get_fieldsFunction · 0.85
exec_sqlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected