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

Function removeManyImpl

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

Source from the content-addressed store, hash-verified

1351 });
1352
1353 const removeManyImpl = (
1354 owner: Owner,
1355 entries: readonly { readonly collection: string; readonly key: string }[],
1356 ) =>
1357 Effect.gen(function* () {
1358 const os = ownerSubject(owner);
1359 if (!os) {
1360 return yield* new StorageError({
1361 message: `Cannot delete plugin storage for owner "user": executor has no subject.`,
1362 cause: undefined,
1363 });
1364 }
1365 yield* deleteManyImpl(owner, os.subject, entries);
1366 });
1367
1368 const queryCollection = <TDefinition extends PluginStorageCollectionDefinition>(
1369 definition: TDefinition,

Callers 1

makePluginStorageFacadeFunction · 0.85

Calls 2

deleteManyImplFunction · 0.85
ownerSubjectFunction · 0.70

Tested by

no test coverage detected