Skip to content

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