pub async fn db_health(url: &str) -> Result<()>Expand description
Check database health with comprehensive diagnostics.
Performs multiple health checks including connection verification, query latency measurement, and connection pool status.
§Arguments
url- Database connection URL
§Health Checks
- Connection status
- Query latency (5 test queries)
- Connection pool utilization
- Performance warnings (high latency > 100ms, high pool usage > 80%)
§Examples
db_health("postgresql://localhost/celers").await?;