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§
- Block
Migration Stats - Migration statistics for backend-to-backend block migrations
- Migration
Config - Migration configuration
- Migration
Estimate - Estimate migration time and space requirements
- Migration
Plan - An ordered sequence of
MigrationSteps needed to reach a target version. - Migration
Record - A historical record of a single migration step execution.
- Migration
Runner - Executes migration plans and tracks history.
- Migration
Stats - Atomic counters tracking migration activity across the lifetime of a
MigrationRunner. - Migration
Stats Snapshot - A snapshot of
MigrationStatswith plainu64values for easy inspection. - Migration
Step - A single migration step from one schema version to another.
- Schema
Version - Schema version newtype.
- Storage
Migrator - Storage migrator
Enums§
- Migration
Error - Errors produced by the migration framework.
- Migration
Status - 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§
- Progress
Callback - Progress callback type