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

Function removeManyImpl

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

Source from the content-addressed store, hash-verified

1722 );
1723
1724 const removeManyImpl = (
1725 owner: Owner,
1726 entries: readonly { readonly collection: string; readonly key: string }[],
1727 ) =>
1728 Effect.gen(function* () {
1729 const os = ownerSubject(owner);
1730 if (!os) {
1731 return yield* new StorageError({
1732 message: `Cannot delete plugin storage for owner "user": executor has no subject.`,
1733 cause: undefined,
1734 });
1735 }
1736 yield* deleteManyImpl(owner, os.subject, entries);
1737 });
1738
1739 const queryCollection = <TDefinition extends PluginStorageCollectionDefinition>(
1740 definition: TDefinition,

Callers 1

makePluginStorageFacadeFunction · 0.85

Calls 2

deleteManyImplFunction · 0.85
ownerSubjectFunction · 0.70

Tested by

no test coverage detected