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

Function getForOwnerImpl

packages/core/sdk/src/executor.ts:1193–1198  ·  view source on GitHub ↗
(owner: Owner, collection: string, key: string)

Source from the content-addressed store, hash-verified

1191 );
1192
1193 const getForOwnerImpl = <T>(owner: Owner, collection: string, key: string) =>
1194 input.core
1195 .findFirst("plugin_storage", {
1196 where: whereOwner(owner, collection, key),
1197 })
1198 .pipe(Effect.map((row) => (row ? pluginStorageEntryFromRow<T>(row) : null)));
1199
1200 const putImpl = <T>(owner: Owner, collection: string, key: string, data: unknown) =>
1201 Effect.gen(function* () {

Callers 1

makePluginStorageFacadeFunction · 0.85

Calls 2

whereOwnerFunction · 0.85

Tested by

no test coverage detected