pub fn apply_migrations(conn: &Connection) -> Result<(), MigrationError>Expand description
Apply all pending migrations to conn up to CURRENT_SCHEMA_VERSION.
Idempotent: calling this function on a fully-migrated database is a no-op. Each migration step runs inside its own transaction so a partial failure leaves the database at a consistent version boundary (each migration step is fully atomic).
Connection lifecycle and PRAGMA initialisation (journal_mode=WAL, synchronous=FULL,
foreign_keys=ON) are the caller’s responsibility (implemented in connection.rs).