npm

Need private packages and team management tools?Check out npm Orgs. »

resolve-storage-base

0.20.19 • 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

891

version

0.20.19

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability