pub struct MigrationResult {
pub rows_migrated: i64,
pub batches: i32,
pub errors: Vec<String>,
}Expand description
MigrationResult : The outcome of a completed migration run. Since #1212 this is the job’s result (/jobs_u/get/{id} -> result), not the body of POST /run – that operation returns a job id and does not wait.
Fields§
§rows_migrated: i64Cumulative across attempts when the run was resumed – it answers "how much of this migration is done", not "how much did this attempt do".
batches: i32cumulative across attempts, for the same reason.
errors: Vec<String>Non-empty only when execution stopped early – a failed batch insert, a fetch failure after progress had been made, a checkpoint that could not be recorded, or the run being cancelled. Every prior batch is fully committed and is not rolled back, so rows_migrated always reflects what is actually in the target. Note the two shapes: an engine-side failure names where it stopped (insert for batch 2 (after cursor ...) failed), while a cancellation names the count inline.
Implementations§
Trait Implementations§
Source§impl Clone for MigrationResult
impl Clone for MigrationResult
Source§fn clone(&self) -> MigrationResult
fn clone(&self) -> MigrationResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more