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

Function get_uri

backend/apps/db/db.py:53–56  ·  view source on GitHub ↗
(ds: CoreDatasource)

Source from the content-addressed store, hash-verified

51
52
53def get_uri(ds: CoreDatasource) -> str:
54 conf = DatasourceConf(**json.loads(aes_decrypt(ds.configuration))) if not equals_ignore_case(ds.type,
55 "excel") else get_engine_config()
56 return get_uri_from_config(ds.type, conf)
57
58
59def get_uri_from_config(type: str, conf: DatasourceConf) -> str:

Callers 1

get_engineFunction · 0.85

Calls 5

DatasourceConfClass · 0.90
aes_decryptFunction · 0.90
equals_ignore_caseFunction · 0.90
get_engine_configFunction · 0.90
get_uri_from_configFunction · 0.85

Tested by

no test coverage detected