pub struct SnapshotValidator { /* private fields */ }Expand description
Tracks expected vs. received snapshot rows for validation.
Implementations§
Source§impl SnapshotValidator
impl SnapshotValidator
Sourcepub fn track_event(&mut self, event: &Event) -> Result<()>
pub fn track_event(&mut self, event: &Event) -> Result<()>
Track a snapshot event. Should be called for each Read operation.
Sourcepub fn set_expected_count(&mut self, table: &str, count: u64)
pub fn set_expected_count(&mut self, table: &str, count: u64)
Record expected row count for a table (typically from SELECT COUNT).
Sourcepub fn finalize(self) -> Result<SnapshotValidationResult>
pub fn finalize(self) -> Result<SnapshotValidationResult>
Finalize validation and check for data integrity issues.
Trait Implementations§
Source§impl Debug for SnapshotValidator
impl Debug for SnapshotValidator
Auto Trait Implementations§
impl Freeze for SnapshotValidator
impl RefUnwindSafe for SnapshotValidator
impl Send for SnapshotValidator
impl Sync for SnapshotValidator
impl Unpin for SnapshotValidator
impl UnsafeUnpin for SnapshotValidator
impl UnwindSafe for SnapshotValidator
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