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

Function get_ds

backend/apps/datasource/crud/datasource.py:37–40  ·  view source on GitHub ↗
(session: SessionDep, id: int)

Source from the content-addressed store, hash-verified

35
36
37def get_ds(session: SessionDep, id: int):
38 statement = select(CoreDatasource).where(CoreDatasource.id == id)
39 datasource = session.exec(statement).first()
40 return datasource
41
42
43def check_status_by_id(session: SessionDep, trans: Trans, ds_id: int, is_raise: bool = False):

Callers 2

get_chart_data_dsFunction · 0.90
get_datasourceFunction · 0.85

Calls 2

firstMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected