Expand description
A Postgres client that uses deadpool as a connection pool and comes with common/default configuration options.
Modules§
- error
- PostgresClient-related errors.
- metrics
- Implementation-specific metrics for the internal, pooled Postgres client.
Structs§
- Client
- A pooled Postgres connection tagged with the
IsolationLevelit was created under. - Manager
- A deadpool
managed::Managerwrappingdeadpool_postgres::Manager. It applies a per-connection isolation level at creation and records that level on everyClientit hands out. - Postgres
Client - A Postgres client wrapper that uses deadpool as a connection pool.
- Postgres
Client Config - Configuration for creating a PostgresClient.
Enums§
- Isolation
Level - The transaction isolation level applied to new connections.
Traits§
- Postgres
Client Knobs - Configuration knobs for PostgresClient.
Type Aliases§
- Connection
- A connection handed out by
PostgresClient::get_connection. Dereferences to aClient, which additionally records theIsolationLevelthe connection was created under. - Isolation
Level Fn - Resolves the isolation level to apply to a connection. It is invoked once per connection creation, so a dyncfg-backed resolver lets a change take effect as the pool cycles connections.