Crate automerge_persistent
source ·Expand description
A library for constructing efficient persistent automerge documents.
A PersistentAutomerge
wraps an automerge::Automerge
and handles making the changes applied
to it durable. This works by persisting every change before it is applied to the document. Then
occasionally the user should call compact
to save the document in a more compact format and
cleanup the included changes. This strategy aims to be fast while also being space efficient
(up to the user’s requirements).
let persister = MemoryPersister::default();
let doc = PersistentAutomerge::load(persister).unwrap();
Structs
- For Testing An in-memory persister.
- A wrapper for a persister and an automerge document.
- A wrapper for a persister and an automerge document.
- Bytes stored for each of the stored types.
Enums
- Errors that persistent documents can return.
- Errors that persistent documents can return after a transaction.
Traits
- A Persister persists both changes and documents to durable storage.