feat: provide connection pool to routes
This commit is contained in:
parent
f4deaceb27
commit
68e825c942
5 changed files with 43 additions and 20 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue