Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Sep 9, 2021

Conversation

the-mikedavis
Copy link
Collaborator

@the-mikedavis the-mikedavis commented Aug 26, 2021

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?).

@the-mikedavis the-mikedavis changed the title handle stream-position type ReadResps add :include_position? option to Spear.read_stream/3 to emit positions Sep 9, 2021
@the-mikedavis the-mikedavis marked this pull request as ready for review September 9, 2021 16:44
@the-mikedavis the-mikedavis requested a review from a team September 9, 2021 16:44
@the-mikedavis the-mikedavis merged commit f906a14 into main Sep 9, 2021
@the-mikedavis the-mikedavis deleted the read-resp-stream-position-emits branch September 9, 2021 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants