PooledDBError (dbutils/pooled_db.py)

DBUtils · dbutils/pooled_db.py · python · MIT
database

Thread-safe DB-API 2 connection pool with failover, configurable limits, and transaction awareness.

# Source: https://github.com/WebwareForPython/DBUtils | License: MIT | Copyright 2025 Christoph Zwerschke
# Provided via justclaw.it.com; keep this notice with the code.
"""PooledDB - pooling for DB-API 2 connections.

Implements a pool of steady, thread-safe cached connections
to a database which are transparently reused,
using an arbitrary DB-API 2 compliant database interface module.

This should result in a speedup for persistent applications such as the
application server of "Webware for Python," without loss of robustness.

Robustness is provided by using "hardened" SteadyDB connections.
Even if the underlying database is restarted and all connections
are lost, they will be automatically and transparently reopened.
However, since you don't want this to happen in the middle of a datab

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key