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

Function removeManyImpl

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

Source from the content-addressed store, hash-verified

1389 });
1390
1391 const removeManyImpl = (
1392 owner: Owner,
1393 entries: readonly { readonly collection: string; readonly key: string }[],
1394 ) =>
1395 Effect.gen(function* () {
1396 const os = ownerSubject(owner);
1397 if (!os) {
1398 return yield* new StorageError({
1399 message: `Cannot delete plugin storage for owner "user": executor has no subject.`,
1400 cause: undefined,
1401 });
1402 }
1403 yield* deleteManyImpl(owner, os.subject, entries);
1404 });
1405
1406 const queryCollection = <TDefinition extends PluginStorageCollectionDefinition>(
1407 definition: TDefinition,

Callers 1

makePluginStorageFacadeFunction · 0.85

Calls 2

deleteManyImplFunction · 0.85
ownerSubjectFunction · 0.70

Tested by

no test coverage detected