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
11mod checkpoint;
12mod protocol;
13
14pub use checkpoint::Checkpointer;
15pub use protocol::{
16 ReplicationEvent, ReplicationFilter, ReplicationHandle, ReplicationOptions, ReplicationResult,
17 replicate, replicate_live, replicate_with_events,
18};