rust_ef/migration/mod.rs
1//! Migration engine — model snapshot diffing, migration generation, and history tracking.
2//!
3//! Corresponds to EFCore's migration system. Implements full model diffing:
4//! - Detect added/removed tables
5//! - Detect added/removed/altered columns
6//! - Generate Up/Down SQL with dialect-specific type mappings
7//! - Maintain `__ef_migrations_history` tracking table
8
9mod dialect;
10mod diff;
11mod engine;
12mod engine_ops;
13mod engine_sql;
14mod history;
15mod schema_change;
16mod snapshot_io;
17mod types;
18
19pub use dialect::MigrationDialect;
20pub use engine::MigrationEngine;
21pub use history::{
22 create_migration_history_table_sql, MigrationHistoryEntry, MigrationStore,
23 MIGRATION_HISTORY_TABLE, PRODUCT_VERSION,
24};
25pub use snapshot_io::parse_model_snapshot_json;
26pub use types::{Migration, ModelSnapshot, SnapshotColumn, SnapshotEntityType};