dynamic_db #17

Merged
phoenix merged 31 commits from dynamic_db into devel 2025-04-05 01:30:36 +00:00
Showing only changes of commit 9cfec4fa27 - Show all commits

View File

@@ -37,6 +37,13 @@ async fn app() -> Router {
.await
.expect("Failed to create pool");
// Run migrations using the sqlx::migrate! macro
// Assumes your migrations are in a ./migrations folder relative to Cargo.toml
sqlx::migrate!("./migrations")
.run(&pool)
.await
.expect("Failed to run migrations on testcontainer DB");
routes().await.layer(axum::Extension(pool))
}