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

Function removeManyImpl

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

Source from the content-addressed store, hash-verified

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

Callers 1

makePluginStorageFacadeFunction · 0.85

Calls 2

deleteManyImplFunction · 0.85
ownerSubjectFunction · 0.70

Tested by

no test coverage detected