@resolve-js/eventstore-lite
TypeScript icon, indicating that this package has built-in type declarations

0.34.3 • Public • Published

@resolve-js/eventstore-lite

npm version

This package is a event store adapter used to store events in 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. If set to ":memory:", all data is lost when an application instance is restarted.

Usage

import createAdapter from '@resolve-js/eventstore-lite'

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

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

Analytics

Package Sidebar

Install

npm i @resolve-js/eventstore-lite

Weekly Downloads

44

Version

0.34.3

License

MIT

Unpacked Size

389 kB

Total Files

240

Last publish

Collaborators

  • resolve-admin