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

Function removeManyImpl

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

Source from the content-addressed store, hash-verified

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

Callers 1

makePluginStorageFacadeFunction · 0.85

Calls 2

deleteManyImplFunction · 0.85
ownerSubjectFunction · 0.70

Tested by

no test coverage detected