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

Implement explicit snapshots #16

Merged
merged 1 commit into from
Jan 5, 2025
Merged

Implement explicit snapshots #16

merged 1 commit into from
Jan 5, 2025

Conversation

vweevers
Copy link
Member

@vweevers vweevers commented Dec 22, 2024

See Level/community#118. TLDR:

await db.put('example', 'before')
const snapshot = db.snapshot()
await db.put('example', 'after')
await db.get('example', { snapshot })) // Returns 'before'
await snapshot.close()

@vweevers vweevers added the semver-minor New features that are backward compatible label Dec 22, 2024
@vweevers vweevers force-pushed the explicit-snapshots branch from 22e9e64 to 98d0213 Compare January 5, 2025 19:43
@vweevers vweevers marked this pull request as ready for review January 5, 2025 19:43
@vweevers vweevers merged commit f832018 into main Jan 5, 2025
9 checks passed
@vweevers vweevers deleted the explicit-snapshots branch January 5, 2025 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-minor New features that are backward compatible
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant