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

Function removeManyImpl

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

Source from the content-addressed store, hash-verified

1708 );
1709
1710 const removeManyImpl = (
1711 owner: Owner,
1712 entries: readonly { readonly collection: string; readonly key: string }[],
1713 ) =>
1714 Effect.gen(function* () {
1715 const os = ownerSubject(owner);
1716 if (!os) {
1717 return yield* new StorageError({
1718 message: `Cannot delete plugin storage for owner "user": executor has no subject.`,
1719 cause: undefined,
1720 });
1721 }
1722 yield* deleteManyImpl(owner, os.subject, entries);
1723 });
1724
1725 const queryCollection = <TDefinition extends PluginStorageCollectionDefinition>(
1726 definition: TDefinition,

Callers 1

makePluginStorageFacadeFunction · 0.85

Calls 2

deleteManyImplFunction · 0.85
ownerSubjectFunction · 0.70

Tested by

no test coverage detected