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

Function sync_fields

backend/apps/datasource/api/datasource.py:167–169  ·  view source on GitHub ↗
(session: SessionDep, trans: Trans,
                      id: int = Path(..., description=f"{PLACEHOLDER_PREFIX}ds_table_id"))

Source from the content-addressed store, hash-verified

165@router.post("/syncFields/{id}", response_model=None, summary=f"{PLACEHOLDER_PREFIX}ds_sync_fields")
166@require_permissions(permission=SqlbotPermission(role=['ws_admin']))
167async def sync_fields(session: SessionDep, trans: Trans,
168 id: int = Path(..., description=f"{PLACEHOLDER_PREFIX}ds_table_id")):
169 return sync_single_fields(session, trans, id)
170
171
172from pydantic import BaseModel

Callers

nothing calls this directly

Calls 1

sync_single_fieldsFunction · 0.85

Tested by

no test coverage detected