resolve-eventstore-lite
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:'
})