# API Reference


## Classes


Main classes provided by the package


[Connection](Connection.md#gdtest_complete_docstrings.Connection)  
A managed database connection drawn from the pool.


## Functions


Utility functions


[get_connection()](get_connection.md#gdtest_complete_docstrings.get_connection)  
Obtain a connection from the pool.

[reinitialize()](reinitialize.md#gdtest_complete_docstrings.reinitialize)  
Reset the global connection pool.


## Constants


Module-level constants and data


[BackendName](BackendName.md#gdtest_complete_docstrings.BackendName)  
A supported database backend, as a string literal.

[ConnectionId](ConnectionId.md#gdtest_complete_docstrings.ConnectionId)  
An opaque handle for a single pooled connection.

[Handler](Handler.md#gdtest_complete_docstrings.Handler)  
A callable that handles connection lifecycle events.

[MAX_CONNECTIONS](MAX_CONNECTIONS.md#gdtest_complete_docstrings.MAX_CONNECTIONS)  
Upper bound on simultaneous database connections.

[MIN_CONNECTIONS](MIN_CONNECTIONS.md#gdtest_complete_docstrings.MIN_CONNECTIONS)  
Lower bound on warm connections kept in the pool.

[PoolKey](PoolKey.md#gdtest_complete_docstrings.PoolKey)  
A unique identifier for a connection pool instance.

[SUPPORTED_BACKENDS](SUPPORTED_BACKENDS.md#gdtest_complete_docstrings.SUPPORTED_BACKENDS)  
Database backends the pool can connect to.

[Sortable](Sortable.md#gdtest_complete_docstrings.Sortable)  
A connection type that can be compared for priority ordering.

[retry_delay](retry_delay.md#gdtest_complete_docstrings.retry_delay)  
Seconds to wait between retry attempts after a failed connect.

[timeout](timeout.md#gdtest_complete_docstrings.timeout)  
Seconds to wait before abandoning a connection attempt.
