interface DatabasePoolCapacity
Since 0.5.0

A point-in-time reading of the database driver's connection-pool counters (M90b).

The application supplies the reading — it owns the driver and its documented pool API, which a framework package cannot reach through the opaque configured Drizzle instance. The adapter publishes the snapshot to the database health indicator verbatim; no threshold is applied and no status changes because of it: saturation is data before policy.

Properties

readonly
total: number

Total connections the pool holds (idle + in use).

readonly
idle: number

Connections currently idle in the pool.

readonly
waiting: number

Callers currently waiting for a connection.

Usage

import { type DatabasePoolCapacity } from "database-plugin/src/index.ts";