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 snapshot and restore methods #39

Merged
merged 10 commits into from
Dec 22, 2021
Merged

Add snapshot and restore methods #39

merged 10 commits into from
Dec 22, 2021

Conversation

kelindar
Copy link
Owner

@kelindar kelindar commented Dec 21, 2021

This PR adds Snapshot() and Restore() methods to a collection. In order to be able to perform snapshots while writes are happening, we need to also store the commits. This PR adds an encoder/decoder for an entire commit which consists of a chunk and a series of update buffers.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@kelindar kelindar changed the title [WIP] Add commit encoder for snapshots Add snapshot and restore methods Dec 22, 2021
@kelindar kelindar merged commit 809eee6 into main Dec 22, 2021
@kelindar kelindar deleted the savecommit branch December 22, 2021 22:50
@kelindar
Copy link
Owner Author

This also closes #38

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

1 participant