Skip to main content

Module migration_tracking

Module migration_tracking 

Source

Re-exports§

pub use section_tracking::ensure_section_tracking_table;
pub use section_tracking::initialize_sections;

Modules§

section_tracking

Functions§

calculate_checksum
Calculate checksum for migration content
ensure_tracking_table_exists
Initialize the migration tracking table in the database
format_tracking_table_name
Safely format a schema-qualified table name for SQL queries This prevents SQL injection by properly escaping SQL identifiers
record_baseline_as_applied
Insert a baseline record into the migration tracking table
version_from_db
Safely convert migration version from i64 database storage to u64 Handles negative values (which shouldn’t exist) gracefully
version_to_db
Safely convert migration version from u64 to i64 for database storage Migration versions are Unix timestamps, which will exceed i64::MAX around year 2262