jdreaver / eventful

Event Sourcing library for Haskell
MIT License
106 stars 22 forks source link

Deduplicate between stream queries and global queries #10

Closed jdreaver closed 7 years ago

jdreaver commented 7 years ago

There is a lot of opportunity to try and deduplicate the logic between querying an individual event stream and querying global state. This PR is an experiment with that. The hope is that we can provide even more query types in the future under this interface. For example, it would be cool to filter by events of a given type, which is possible in stores like postgres where we can add indexes on the JSON.

It's very possible I decide these changes aren't worth the increased complexity and I close this PR :smile: