How to roll back leveldb in previous state?

I am ready for a new level of LevelDB. I need something like "rollback to a certain state", does LevelDB support this? After some searching, I know that LevelDB does not support transactions, but supports snapshots. Can I restore my database in a snapshot?

My need is this:

  • Initial state
  • Make some changes to the database
  • If something is wrong, return to its original state.
+4
source share
1 answer

The LightDB snapshot is not intended to restore changes, but allows other readers from the same stream to access a consistent version of the database.

- :

  • Commit
  • , . .
0

Source: https://habr.com/ru/post/1536347/


All Articles