Expand description
Backup utilities for safe migrations.
Provides pre-migration impact analysis and snapshot creation.
Structs§
- Migration
Impact - Impact analysis result for a migration command
Enums§
- Migration
Choice - User choice for migration
- Snapshot
Type - Snapshot type for different backup scenarios
Constants§
- DATA_
SNAPSHOTS_ SCHEMA - Schema for data snapshots table (QAIL format)
Functions§
- analyze_
impact - Analyze the impact of a migration command
- backup_
columns - Backup specific columns from a table
- backup_
table - Backup a table to CSV file using COPY protocol (AST-native)
- create_
db_ snapshots - Create database snapshots for all destructive operations (Phase 2)
- create_
snapshots - Create snapshots for all destructive operations
- data_
snapshots_ ddl - Generate data snapshots table DDL
- display_
impact - Display impact analysis to user
- ensure_
snapshots_ table - Ensure data snapshots table exists
- list_
snapshots - List available snapshots for a migration version
- prompt_
migration_ choice - Prompt user for migration choice
- restore_
column_ from_ db - Restore column data from database snapshot
- snapshot_
column_ to_ db - Create database-stored snapshot for a dropped column (Phase 2)
- snapshot_
table_ to_ db - Create database-stored snapshot for a dropped table (Phase 2)