Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

resolve-storage-base

0.19.8 • Public • Published

resolve-storage-base

npm version

This base package is a resolve-es adapter for storing events.

Usage

import createAdapter from 'resolve-storage-xxx';
 
const adapter = createAdapter({ skipInit: true /*, options */});
 
await adapter.init()
 
await loadEvents({ 
  eventTypes: ['TYPE_1', 'TYPE_2'],
  aggregateIds: ['aggregate_1', 'aggregate_2'],
  startTime: 0,
  finishTime: Date.now()
}, callback)
 
await saveEvent(event)
 
await dispose({ dropEvents: false })

Analytics

install

npm i resolve-storage-base

Downloadsweekly downloads

135

version

0.19.8

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability