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

Function removeManyImpl

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

Source from the content-addressed store, hash-verified

1337 });
1338
1339 const removeManyImpl = (
1340 owner: Owner,
1341 entries: readonly { readonly collection: string; readonly key: string }[],
1342 ) =>
1343 Effect.gen(function* () {
1344 const os = ownerSubject(owner);
1345 if (!os) {
1346 return yield* new StorageError({
1347 message: `Cannot delete plugin storage for owner "user": executor has no subject.`,
1348 cause: undefined,
1349 });
1350 }
1351 yield* deleteManyImpl(owner, os.subject, entries);
1352 });
1353
1354 const queryCollection = <TDefinition extends PluginStorageCollectionDefinition>(
1355 definition: TDefinition,

Callers 1

makePluginStorageFacadeFunction · 0.85

Calls 2

deleteManyImplFunction · 0.85
ownerSubjectFunction · 0.70

Tested by

no test coverage detected