EventStore / EventStore-Client-Go

Go Client for Event Store version 20 and above.
Apache License 2.0
103 stars 25 forks source link

Support ReadAllStreams for getting all streams #143

Closed mehdihadeli closed 1 year ago

mehdihadeli commented 1 year ago

Hi, I think currently there is no functionality for getting all streams, Is it possible to add it?

YoEight commented 1 year ago

The database doesn't have a first class feature that returns you all streams. However there is a way to get around this by using projections, in this case the $streams projection: https://developers.eventstore.com/server/v22.10/projections.html#streams-projection

Please consider that projections aren't a free lunch so have a look on potential performance impact there: https://developers.eventstore.com/server/v22.10/projections.html#performance-impact

mehdihadeli commented 1 year ago

Thanks, I just wanted to get all streams and delete them one by one in my tests.