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

Function get_engine_uri

backend/apps/db/engine.py:19–20  ·  view source on GitHub ↗
(conf: DatasourceConf)

Source from the content-addressed store, hash-verified

17
18
19def get_engine_uri(conf: DatasourceConf):
20 return f"postgresql+psycopg2://{urllib.parse.quote(conf.username)}:{urllib.parse.quote(conf.password)}@{conf.host}:{conf.port}/{urllib.parse.quote(conf.database)}"
21
22
23def get_engine_conn():

Callers 1

get_engine_connFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected