(owner: Owner, collection: string, key: string)
| 1199 | ); |
| 1200 | |
| 1201 | const getForOwnerImpl = <T>(owner: Owner, collection: string, key: string) => |
| 1202 | input.core |
| 1203 | .findFirst("plugin_storage", { |
| 1204 | where: whereOwner(owner, collection, key), |
| 1205 | }) |
| 1206 | .pipe(Effect.map((row) => (row ? pluginStorageEntryFromRow<T>(row) : null))); |
| 1207 | |
| 1208 | const putImpl = <T>(owner: Owner, collection: string, key: string, data: unknown) => |
| 1209 | Effect.gen(function* () { |
no test coverage detected