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

Function getForOwnerImpl

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

Source from the content-addressed store, hash-verified

953 );
954
955 const getForOwnerImpl = <T>(owner: Owner, collection: string, key: string) =>
956 input.core
957 .findFirst("plugin_storage", {
958 where: whereOwner(owner, collection, key),
959 })
960 .pipe(Effect.map((row) => (row ? pluginStorageEntryFromRow<T>(row) : null)));
961
962 const putImpl = <T>(owner: Owner, collection: string, key: string, data: unknown) =>
963 Effect.gen(function* () {

Callers 1

makePluginStorageFacadeFunction · 0.85

Calls 2

whereOwnerFunction · 0.85

Tested by

no test coverage detected