Skip to main content

run_migrations

Function run_migrations 

Source
pub async fn run_migrations(pool: &SqlitePool) -> Result<(), String>
Expand description

Run every pending migration from ./migrations against the given pool.

Centralised here so the sqlx::migrate! macro is expanded exactly once per crate and every migration path is guarded by MIGRATION_LOCK.