@resolve-js/eventstore-base
v0.34.3
Published
A base for reSolve eventstore adapters
Downloads
91
Maintainers
Readme
@resolve-js/eventstore-base
A base package for adapters used to store events.
Usage
import createAdapter from '@resolve-js/eventstore-xxx'
const adapter = createAdapter({
/* options */
})
await adapter.init()
await loadEvents({
eventTypes: ['TYPE_1', 'TYPE_2'],
aggregateIds: ['aggregate_1', 'aggregate_2'],
startTime: 0,
finishTime: Date.now(),
})
await saveEvent(event)
await dispose({ dropEvents: false })