use actix_web::web; use sqlx::PgPool; pub async fn test_database(postgres: web::Data) -> Result<(), sqlx::Error> { let mut transaction = postgres.acquire().await?; sqlx::query( " SELECT 1 ", ) .execute(&mut transaction) .await .map(|_| ()) }