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

Function get_datasource

backend/apps/datasource/api/datasource.py:54–55  ·  view source on GitHub ↗
(session: SessionDep, id: int = Path(..., description=f"{PLACEHOLDER_PREFIX}ds_id"))

Source from the content-addressed store, hash-verified

52@router.post("/get/{id}", response_model=CoreDatasource, summary=f"{PLACEHOLDER_PREFIX}ds_get")
53@require_permissions(permission=SqlbotPermission(role=['ws_admin'], keyExpression="id", type='ds'))
54async def get_datasource(session: SessionDep, id: int = Path(..., description=f"{PLACEHOLDER_PREFIX}ds_id")):
55 return get_ds(session, id)
56
57
58@router.post("/check", response_model=bool, summary=f"{PLACEHOLDER_PREFIX}ds_check")

Callers

nothing calls this directly

Calls 1

get_dsFunction · 0.85

Tested by

no test coverage detected