Skip to main content

Module migration

Module migration 

Source
Expand description

Storage migration utilities

This module provides utilities for migrating data between different storage backends, enabling seamless transitions in production deployments.

It also provides the StorageMigrationFramework for schema-level version upgrades.

Structs§

BlockMigrationStats
Migration statistics for backend-to-backend block migrations
MigrationConfig
Migration configuration
MigrationEstimate
Estimate migration time and space requirements
MigrationPlan
An ordered sequence of MigrationSteps needed to reach a target version.
MigrationRecord
A historical record of a single migration step execution.
MigrationRunner
Executes migration plans and tracks history.
MigrationStats
Atomic counters tracking migration activity across the lifetime of a MigrationRunner.
MigrationStatsSnapshot
A snapshot of MigrationStats with plain u64 values for easy inspection.
MigrationStep
A single migration step from one schema version to another.
SchemaVersion
Schema version newtype.
StorageMigrator
Storage migrator

Enums§

MigrationError
Errors produced by the migration framework.
MigrationStatus
Status of a migration record.

Functions§

estimate_migration
Estimate migration requirements
migrate_storage
Helper function to migrate between stores
migrate_storage_batched
Migrate with custom batch size for optimal performance
migrate_storage_verified
Migrate with verification enabled (slower but safer)
migrate_storage_with_progress
Helper function to migrate with progress reporting
validate_migration
Migration validation - verify both stores have identical content

Type Aliases§

ProgressCallback
Progress callback type