MCPcopy Create free account
hub / github.com/clientdb/clientdb / handleUpdateRequest

Function handleUpdateRequest

core/queryIndex.ts:218–227  ·  view source on GitHub ↗
(entity: TargetEntity)

Source from the content-addressed store, hash-verified

216 }
217
218 function handleUpdateRequest(entity: TargetEntity) {
219 if (isBasedOnBuiltInKey) {
220 updateItemIndex(entity);
221 return;
222 }
223
224 if (entityDerievationWatching.has(entity)) return;
225
226 registerEntityForDerievedChanges(entity);
227 }
228
229 function handleRemoveRequest(entity: TargetEntity) {
230 if (isBasedOnBuiltInKey) {

Callers 1

initializeIndexFunction · 0.85

Calls 2

updateItemIndexFunction · 0.85

Tested by

no test coverage detected