"""Shared SQLAlchemy connection pool configuration constants.

Pool sizing (pool_size, max_overflow) remains per-engine since
different databases have different concurrency profiles.
"""

# Validate connections before checkout (detects stale/broken connections)
POOL_PRE_PING = True

# Recycle connections after 1 hour to release stale file handles.
# SQLite reopens are cheap (no network roundtrip), so a shorter
# interval reduces the window for WAL handle accumulation.
# See ADR-0004.
POOL_RECYCLE_SECONDS = 3600
