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

Function removeManyImpl

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

Source from the content-addressed store, hash-verified

1689 );
1690
1691 const removeManyImpl = (
1692 owner: Owner,
1693 entries: readonly { readonly collection: string; readonly key: string }[],
1694 ) =>
1695 Effect.gen(function* () {
1696 const os = ownerSubject(owner);
1697 if (!os) {
1698 return yield* new StorageError({
1699 message: `Cannot delete plugin storage for owner "user": executor has no subject.`,
1700 cause: undefined,
1701 });
1702 }
1703 yield* deleteManyImpl(owner, os.subject, entries);
1704 });
1705
1706 const queryCollection = <TDefinition extends PluginStorageCollectionDefinition>(
1707 definition: TDefinition,

Callers 1

makePluginStorageFacadeFunction · 0.85

Calls 2

deleteManyImplFunction · 0.85
ownerSubjectFunction · 0.70

Tested by

no test coverage detected