resolve-eventstore-lite

0.26.5 • Public • Published

resolve-eventstore-lite

npm version

This package is a eventstore adapter for storing events using a file or memory.

Available Parameters

You can pass the following argument when initializing an adapter:

  • databaseFile - the path to a file where events are stored. In case ":memory:" all data is lost when an application instance is restarted.

Usage

import createAdapter from 'resolve-eventstore-lite'

const fileAdapter = createAdapter({ 
  databaseFile: './store.db' 
})

const memoryAdapter = createAdapter({ 
  databaseFile: ':memory:' 
})

Analytics

/resolve-eventstore-lite/

    Package Sidebar

    Install

    npm i resolve-eventstore-lite

    Weekly Downloads

    1

    Version

    0.26.5

    License

    MIT

    Unpacked Size

    243 kB

    Total Files

    203

    Last publish

    Collaborators

    • reimagined-admin