MCPcopy Create free account
hub / github.com/dataease/SQLBot / delete

Function delete

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

Source from the content-addressed store, hash-verified

106@system_log(LogConfig(operation_type=OperationType.DELETE, module=OperationModules.DATASOURCE, resource_id_expr="id",
107 ))
108async def delete(session: SessionDep, id: int = Path(..., description=f"{PLACEHOLDER_PREFIX}ds_id"), name: str = None):
109 return await delete_ds(session, id)
110
111
112@router.post("/getTables/{id}", response_model=List[TableSchemaResponse], summary=f"{PLACEHOLDER_PREFIX}ds_get_tables")

Callers

nothing calls this directly

Calls 1

delete_dsFunction · 0.85

Tested by

no test coverage detected