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

Examples of persisting snapshots to a database #145

Closed
justageek opened this issue Nov 8, 2021 · 2 comments
Closed

Examples of persisting snapshots to a database #145

justageek opened this issue Nov 8, 2021 · 2 comments

Comments

@justageek
Copy link

The only example of a snapshot repository you provide is InMemorySnapshotRepository. Where can we find an example of how to persist the snapshot to a database, does a simple serialize(), unserialize() work for the Snapshot object?

@frankdejonge
Copy link
Member

I don't have a public example for that, however. Any key-value store will do. Traditional SQL databases also work fine.

@andrzepakula
Copy link

andrzepakula commented Dec 13, 2021

Hi. Here is an example. In my implementation, state must be an object.

Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants