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

Function get_tables

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

Source from the content-addressed store, hash-verified

112@router.post("/getTables/{id}", response_model=List[TableSchemaResponse], summary=f"{PLACEHOLDER_PREFIX}ds_get_tables")
113@require_permissions(permission=SqlbotPermission(type='ds', keyExpression="id"))
114async def get_tables(session: SessionDep, id: int = Path(..., description=f"{PLACEHOLDER_PREFIX}ds_id")):
115 return getTables(session, id)
116
117
118@router.post("/getTablesByConf", response_model=List[TableSchemaResponse], summary=f"{PLACEHOLDER_PREFIX}ds_get_tables")

Callers

nothing calls this directly

Calls 1

getTablesFunction · 0.85

Tested by

no test coverage detected