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

Function removeManyImpl

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

Source from the content-addressed store, hash-verified

1113 });
1114
1115 const removeManyImpl = (
1116 owner: Owner,
1117 entries: readonly { readonly collection: string; readonly key: string }[],
1118 ) =>
1119 Effect.gen(function* () {
1120 const os = ownerSubject(owner);
1121 if (!os) {
1122 return yield* new StorageError({
1123 message: `Cannot delete plugin storage for owner "user": executor has no subject.`,
1124 cause: undefined,
1125 });
1126 }
1127 yield* deleteManyImpl(owner, os.subject, entries);
1128 });
1129
1130 const queryCollection = <TDefinition extends PluginStorageCollectionDefinition>(
1131 definition: TDefinition,

Callers 1

makePluginStorageFacadeFunction · 0.85

Calls 2

deleteManyImplFunction · 0.85
ownerSubjectFunction · 0.70

Tested by

no test coverage detected