use sqlx::{PgPool, postgres::PgPoolOptions}; pub async fn create_pool(database_url: &str) -> Result { PgPoolOptions::new() .max_connections(10) .connect(database_url) .await .map_err(crate::error::AppError::from) }