NFIBrokerage / spear

A sharp EventStoreDB v20+ client backed by Mint :yum:
https://hex.pm/packages/spear
Apache License 2.0
85 stars 14 forks source link

add `:include_position?` option to `Spear.read_stream/3` to emit positions #55

Closed the-mikedavis closed 3 years ago

the-mikedavis commented 3 years ago

connects #54

adds an option :include_position? (default false) to Spear.read_stream/3 that allows one to decode the trailing stream position ReadResp as a %Spear.StreamPosition{} struct

The position is ignored otherwise so that we don't have a breaking behavior change for stream reads.

This feature is awaiting the next calendar release of EventStoreDB (which I believe is scheduled for October 2021?).