Crates.io | sled-overlay |
lib.rs | sled-overlay |
version | 0.1.4 |
source | src |
created_at | 2023-03-10 14:52:32.608948 |
updated_at | 2024-10-15 14:33:59.007617 |
description | Overlay mechanism for sled |
homepage | |
repository | https://github.com/parazyd/sled-overlay |
max_upload_size | |
id | 806491 |
size | 223,647 |
This Rust library serves as a minimal overlay mechanism for the sled embedded database.
This mechanism enables us to simulate changes in a sled database/tree so that keys and values can be dynamically mutated, while avoiding having to change the underlying database. With this, we can perform changes to the sled trees and access the latest changes in-memory, and then only when we're satisfied with the results, we can actually atomically write it into the actual database.
This functionality can also serve as a rollback-like mechanism for sled.
Usage examples are offered in the repository as test units, and docs can be found on docs.rs/sled-overlay.
GNU AGPLv3.