pub struct RecoveryEntry {
pub migration_id: String,
pub checksum: String,
pub direction: String,
pub completed_operations: usize,
pub completed_statements: usize,
pub total_operations: Option<usize>,
pub file_matches: Option<bool>,
pub history_applied: bool,
}Expand description
Recorded recovery state; catalogs must be reconciled before any repair.
Fields§
§migration_id: StringMigration whose statements were recorded.
checksum: StringOriginal migration file checksum.
direction: Stringapply or unapply.
completed_operations: usizeNumber of completed operations recorded by the executor.
completed_statements: usizeCompleted statements within the next operation.
total_operations: Option<usize>Operation count of the migration in the supplied graph; None
when the graph does not contain the id.
file_matches: Option<bool>Whether the supplied graph has the same file; None means unknown id.
history_applied: boolWhether this migration also has an applied history row.
Implementations§
Source§impl RecoveryEntry
impl RecoveryEntry
Sourcepub fn all_operations_recorded(&self) -> bool
pub fn all_operations_recorded(&self) -> bool
Whether progress records every operation of the migration as complete, so only the history write can be outstanding.
Returns:
true when completed_operations equals total_operations
and no statement of a further operation is recorded; false
when operations remain or the migration is not in the graph.
Trait Implementations§
Source§impl Clone for RecoveryEntry
impl Clone for RecoveryEntry
Source§fn clone(&self) -> RecoveryEntry
fn clone(&self) -> RecoveryEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RecoveryEntry
impl Debug for RecoveryEntry
impl Eq for RecoveryEntry
Source§impl PartialEq for RecoveryEntry
impl PartialEq for RecoveryEntry
Source§impl Serialize for RecoveryEntry
impl Serialize for RecoveryEntry
impl StructuralPartialEq for RecoveryEntry
Auto Trait Implementations§
impl Freeze for RecoveryEntry
impl RefUnwindSafe for RecoveryEntry
impl Send for RecoveryEntry
impl Sync for RecoveryEntry
impl Unpin for RecoveryEntry
impl UnsafeUnpin for RecoveryEntry
impl UnwindSafe for RecoveryEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.