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

Function get_fields

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

Source from the content-addressed store, hash-verified

157 summary=f"{PLACEHOLDER_PREFIX}ds_get_fields")
158@require_permissions(permission=SqlbotPermission(role=['ws_admin'], type='ds', keyExpression="id"))
159async def get_fields(session: SessionDep,
160 id: int = Path(..., description=f"{PLACEHOLDER_PREFIX}ds_id"),
161 table_name: str = Path(..., description=f"{PLACEHOLDER_PREFIX}ds_table_name")):
162 return getFields(session, id, table_name)
163
164
165@router.post("/syncFields/{id}", response_model=None, summary=f"{PLACEHOLDER_PREFIX}ds_sync_fields")

Callers

nothing calls this directly

Calls 1

getFieldsFunction · 0.85

Tested by

no test coverage detected