MCPcopy Create free account
hub / github.com/Effect-TS/effect / layerIndexedDb

Function layerIndexedDb

packages/experimental/src/EventJournal.ts:590–596  ·  view source on GitHub ↗
(options?: {
  readonly database?: string
})

Source from the content-addressed store, hash-verified

588 * @category indexed db
589 */
590export const layerIndexedDb = (options?: {
591 readonly database?: string
592}): Layer.Layer<EventJournal, EventJournalError> =>
593 Layer.scoped(
594 EventJournal,
595 makeIndexedDb(options)
596 )
597
598const idbReq = <T>(method: string, evaluate: () => IDBRequest<T>) =>
599 Effect.async<T, EventJournalError>((resume) => {

Callers

nothing calls this directly

Calls 1

makeIndexedDbFunction · 0.85

Tested by

no test coverage detected