Skip to main content

Module pool_status

Module pool_status 

Source
Expand description

Connection pool status display renderable.

Provides a visual dashboard for connection pool status, showing utilization, health, and queue information at a glance.

§Example

use sqlmodel_console::renderables::PoolStatusDisplay;

// Create display with pool stats: active=8, idle=2, max=20, pending=0, timeouts=3
let display = PoolStatusDisplay::new(8, 2, 20, 0, 3);

// Rich mode: Styled panel with progress bar
// Plain mode: Simple text output for agents
println!("{}", display.render_plain());

Structs§

PoolStatusDisplay
Display options for pool status.

Enums§

PoolHealth
Pool health status based on utilization and queue depth.

Traits§

PoolStatsProvider
Statistics snapshot for pool status display.