pub struct DataDiffer { /* private fields */ }Expand description
Data differ engine that accumulates state across file scans
Implementations§
Source§impl DataDiffer
impl DataDiffer
Sourcepub fn new(options: DataDiffOptions) -> Self
pub fn new(options: DataDiffOptions) -> Self
Create a new data differ
Sourcepub fn scan_file(
&mut self,
path: &PathBuf,
schema: &Schema,
dialect: SqlDialect,
is_old: bool,
progress_fn: &Option<Arc<dyn Fn(u64, u64) + Send + Sync>>,
byte_offset: u64,
total_bytes: u64,
) -> Result<()>
pub fn scan_file( &mut self, path: &PathBuf, schema: &Schema, dialect: SqlDialect, is_old: bool, progress_fn: &Option<Arc<dyn Fn(u64, u64) + Send + Sync>>, byte_offset: u64, total_bytes: u64, ) -> Result<()>
Scan a SQL file and accumulate PK/digest state
Sourcepub fn compute_diff(self) -> (DataDiff, Vec<DiffWarning>)
pub fn compute_diff(self) -> (DataDiff, Vec<DiffWarning>)
Compute the final diff from accumulated state
Auto Trait Implementations§
impl Freeze for DataDiffer
impl RefUnwindSafe for DataDiffer
impl Send for DataDiffer
impl Sync for DataDiffer
impl Unpin for DataDiffer
impl UnwindSafe for DataDiffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more