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

Function get_engine_conn

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

Source from the content-addressed store, hash-verified

21
22
23def get_engine_conn():
24 conf = get_engine_config()
25 db_url = get_engine_uri(conf)
26 engine = create_engine(db_url,
27 connect_args={"options": f"-c search_path={conf.dbSchema}", "connect_timeout": conf.timeout},
28 pool_timeout=conf.timeout)
29 return engine
30
31
32def get_data_engine():

Callers 4

innerFunction · 0.90
delete_dsFunction · 0.90
get_data_engineFunction · 0.85
insert_dataFunction · 0.85

Calls 2

get_engine_configFunction · 0.85
get_engine_uriFunction · 0.85

Tested by

no test coverage detected