commanded / eventstore

Event store using PostgreSQL for persistence
MIT License
1.06k stars 146 forks source link

Add `stream_info/2` function #247

Closed slashdotdash closed 2 years ago

slashdotdash commented 2 years ago

Add stream_info/2 function to get basic information about a stream.

Example

alias EventStore.Streams.StreamInfo

{:ok, %StreamInfo{stream_version: stream_version}} = MyApp.EventStore.stream_info("stream-1234")