MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / removeManyImpl

Function removeManyImpl

packages/core/sdk/src/executor.ts:1361–1374  ·  view source on GitHub ↗
(
    owner: Owner,
    entries: readonly { readonly collection: string; readonly key: string }[],
  )

Source from the content-addressed store, hash-verified

1359 });
1360
1361 const removeManyImpl = (
1362 owner: Owner,
1363 entries: readonly { readonly collection: string; readonly key: string }[],
1364 ) =>
1365 Effect.gen(function* () {
1366 const os = ownerSubject(owner);
1367 if (!os) {
1368 return yield* new StorageError({
1369 message: `Cannot delete plugin storage for owner "user": executor has no subject.`,
1370 cause: undefined,
1371 });
1372 }
1373 yield* deleteManyImpl(owner, os.subject, entries);
1374 });
1375
1376 const queryCollection = <TDefinition extends PluginStorageCollectionDefinition>(
1377 definition: TDefinition,

Callers 1

makePluginStorageFacadeFunction · 0.85

Calls 2

deleteManyImplFunction · 0.85
ownerSubjectFunction · 0.70

Tested by

no test coverage detected