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 historical and then continues with live, without gaps or duplicates.
snapshotStateTypeName(dynamic state) → String
The name a snapshot's state is recorded under, which CborSerializer.deserializeState reads it back by.