pub fn up(conn: &mut Connection, migrations: &[Migration]) -> MigrateResult<()>Expand description
Executes all pending migrations in order.
This function:
- Ensures the migrations tracking table exists
- Identifies which migrations have already been applied
- Executes pending migrations in the order they appear in the slice
- Records each migration as applied
All migrations are executed within a single transaction for atomicity.
§Arguments
conn- Mutable reference to the SQLite connectionmigrations- Slice of migrations to apply in order
§Errors
Returns an error if:
- Database operations fail
- Migration SQL is invalid
- Transaction cannot be committed