rouchdb_replication/lib.rs
1/// CouchDB replication protocol implementation.
2///
3/// Implements the standard CouchDB replication algorithm:
4/// 1. Generate deterministic replication ID
5/// 2. Read checkpoint from both source and target
6/// 3. Fetch changes from source since last checkpoint
7/// 4. Compute revision diff against target
8/// 5. Fetch missing documents from source
9/// 6. Write to target with new_edits=false
10/// 7. Save checkpoint to both sides
11
12mod checkpoint;
13mod protocol;
14
15pub use checkpoint::Checkpointer;
16pub use protocol::{replicate, ReplicationOptions, ReplicationResult, ReplicationEvent};