1 2 3 4 5 6
use sqlx::PgPool; /// Run all pending database migrations. pub async fn run_migrations(pool: &PgPool) -> Result<(), sqlx::migrate::MigrateError> { sqlx::migrate!("./migrations").run(pool).await }