OpenCQRS icon indicating copy to clipboard operation
OpenCQRS copied to clipboard

How to restore all database data from event store ?

Open Ilchuk-Mihail opened this issue 6 years ago • 8 comments

Ilchuk-Mihail avatar Oct 08 '18 20:10 Ilchuk-Mihail

Can you please more specific? What do you mean with database data? Read model?

lucabriguglia avatar Oct 09 '18 15:10 lucabriguglia

I mean if I have event store db, and I want to recreate red store , how to do it? For all users data .

Ilchuk-Mihail avatar Oct 09 '18 17:10 Ilchuk-Mihail

I need to add an aggregate store to get all aggregates. For each aggregate you can then get all events.

lucabriguglia avatar Oct 11 '18 13:10 lucabriguglia

I've added the aggregate store, it will be now easier to add this feature.

lucabriguglia avatar Mar 23 '19 19:03 lucabriguglia

I guess the idea is that when you changed logic in event handler and want to republish events to it to recreate its stored data

SlyNet avatar Jun 21 '19 08:06 SlyNet

@lucabriguglia Thank you very much for your sample application. It is really great. It will be a great help for us if you kindly add a sample or snippet to show how to reconstruction read model. I have the same request as @Ilchuk-Mihail . You already mentioned you have added aggregate store. Could you kindly share how we can use it?

Thanks for your kind help and awesome resource.

hasibul2363 avatar Sep 28 '19 19:09 hasibul2363

There is the new branch release/1.2 with a new sample all in the samples folder (more to come). I'll try to add a more specific sample.

lucabriguglia avatar Sep 28 '19 21:09 lucabriguglia

I'm going to add a few specific services to achieve what requested here.

lucabriguglia avatar Nov 20 '19 10:11 lucabriguglia