ExESDB.StreamsHelper (ex_esdb v0.11.0)
Provides helper functions for working with event store streams.
Summary
Functions
Returns the version of the stream using 0-based indexing. ## Parameters
Functions
Returns the version of the stream using 0-based indexing. ## Parameters
storeis the name of the store.stream_idis the name of the stream.
## Returns
version(0-based) or-1if the stream does not exist. This means:- New stream (no events): -1
- Stream with 1 event: 0 (version of latest event)
- Stream with 2 events: 1 (version of latest event)
- etc.