pub async fn apply_migrations(
pool: &SqlitePool,
table: &'static str,
migrations: &[Migration],
) -> Result<(), MigrateError>Expand description
Apply migrations (strictly increasing versions from 1) that table
has not recorded, each in its own BEGIN IMMEDIATE transaction with the
row that records it, and refuse a database a newer build wrote. A store
sharing the database file keeps its own table, so the version
sequences never collide. Idempotent and safe from several processes.