store_support library
For writing an EventStore: the journal entry a store publishes, the
replay-then-live stream EventStream queries are built on, and the name
a snapshot's state is recorded under. An application using a store
doesn't need this library.
Classes
- JournalEntry
- An event together with the journal coordinates it was committed under.
Functions
-
replayThenLive(
{required int from, required Stream< JournalEntry> historical, required Stream<JournalEntry> live, required int keyOf(JournalEntry), bool accept(JournalEntry)?}) → Stream<JournalEntry> -
Replays
historicaland then continues withlive, without gaps or duplicates. -
snapshotStateTypeName(
dynamic state) → String -
The name a snapshot's state is recorded under, which
CborSerializer.deserializeStatereads it back by.