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

Function removeManyImpl

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

Source from the content-addressed store, hash-verified

1503 );
1504
1505 const removeManyImpl = (
1506 owner: Owner,
1507 entries: readonly { readonly collection: string; readonly key: string }[],
1508 ) =>
1509 Effect.gen(function* () {
1510 const os = ownerSubject(owner);
1511 if (!os) {
1512 return yield* new StorageError({
1513 message: `Cannot delete plugin storage for owner "user": executor has no subject.`,
1514 cause: undefined,
1515 });
1516 }
1517 yield* deleteManyImpl(owner, os.subject, entries);
1518 });
1519
1520 const queryCollection = <TDefinition extends PluginStorageCollectionDefinition>(
1521 definition: TDefinition,

Callers 1

makePluginStorageFacadeFunction · 0.85

Calls 2

deleteManyImplFunction · 0.85
ownerSubjectFunction · 0.70

Tested by

no test coverage detected