SUPPORTED_BACKENDS
Database backends the pool can connect to.
SUPPORTED_BACKENDS: Final[tuple[str, …]] = ("postgresql", "mysql", "sqlite")
Each backend name must match a registered driver in the driver registry. Adding a new backend requires implementing the Driver protocol and registering it before pool initialization.
Examples
Check whether a backend is available before connecting:
if "postgresql" in SUPPORTED_BACKENDS:
conn = get_connection("postgresql")