feat: provide connection pool to routes

This commit is contained in:
Sandro Eiler 2024-01-28 22:22:29 +01:00
parent f4deaceb27
commit 68e825c942
5 changed files with 43 additions and 20 deletions

View file

@ -1,7 +1,7 @@
use std::time::Duration;
use learn_axum::configuration::get_configuration;
use sqlx::{Connection, PgConnection, postgres::PgPoolOptions};
use sqlx::{postgres::PgPoolOptions, Connection, PgConnection};
use tokio::net::TcpListener;
struct TestApp {