Skip to main content

replicate_live

Function replicate_live 

Source
pub fn replicate_live(
    source: Arc<dyn Adapter>,
    target: Arc<dyn Adapter>,
    opts: ReplicationOptions,
) -> (Receiver<ReplicationEvent>, ReplicationHandle)
Expand description

Run continuous (live) replication from source to target.

Performs an initial one-shot replication, then polls for new changes at the configured poll_interval. Runs until the returned ReplicationHandle is cancelled/dropped.

Events are emitted through the returned channel receiver.