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

Function update

backend/apps/datasource/api/datasource.py:97–101  ·  view source on GitHub ↗
(session: SessionDep, trans: Trans, user: CurrentUser, ds: CoreDatasource)

Source from the content-addressed store, hash-verified

95@system_log(
96 LogConfig(operation_type=OperationType.UPDATE, module=OperationModules.DATASOURCE, resource_id_expr="ds.id"))
97async def update(session: SessionDep, trans: Trans, user: CurrentUser, ds: CoreDatasource):
98 def inner():
99 return update_ds(session, trans, user, ds)
100
101 return await asyncio.to_thread(inner)
102
103
104@router.post("/delete/{id}/{name}", response_model=None, summary=f"{PLACEHOLDER_PREFIX}ds_delete")

Callers 5

save_table_embeddingFunction · 0.50
save_ds_embeddingFunction · 0.50
update_trainingFunction · 0.50
enable_trainingFunction · 0.50
save_embeddingsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected