MCPcopy Index your code
hub / github.com/Effect-TS/effect / layerIndexedDb

Function layerIndexedDb

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

makeIndexedDbFunction · 0.85

Tested by

no test coverage detected