mysql-replication 0.0.2

Configurable MySQL replication with committed change event handlers
Documentation
1
2
3
4
5
6
7
8
9
10
//! Transaction sink contract and output implementations.
mod json_lines;
use crate::{OwnedChange, Result, engine::checkpoint::State};
pub use json_lines::JsonLinesSink;

/// A successful commit acknowledges the complete transaction, before checkpoint
/// persistence. Implementations must be safe for concurrent source workers.
pub trait TransactionSink: Send + Sync {
    fn commit(&self, source_id: &str, state: &State, changes: &[OwnedChange]) -> Result<()>;
}