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

Function get_engine_config

backend/apps/db/engine.py:13–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def get_engine_config():
14 return DatasourceConf(username=settings.POSTGRES_USER, password=settings.POSTGRES_PASSWORD,
15 host=settings.POSTGRES_SERVER, port=settings.POSTGRES_PORT, database=settings.POSTGRES_DB,
16 dbSchema="public", timeout=30) # read engine config
17
18
19def get_engine_uri(conf: DatasourceConf):

Callers 9

previewFunction · 0.90
get_table_obj_by_dsFunction · 0.90
get_uriFunction · 0.90
get_engineFunction · 0.90
get_versionFunction · 0.90
get_schemaFunction · 0.90
get_tablesFunction · 0.90
get_fieldsFunction · 0.90
get_engine_connFunction · 0.85

Calls 1

DatasourceConfClass · 0.90

Tested by

no test coverage detected