Module pooled_connection

Source
Available on crate feature pool only.
Expand description

This module contains support using diesel-async with various async rust connection pooling solutions

See the concrete pool implementations for examples:

Modules§

bb8bb8
A pool implementation for diesel-async based on bb8
deadpooldeadpool
A connection pool implementation for diesel-async based on deadpool
mobcmobc
A pool implementation for diesel-async based on mobc

Structs§

AsyncDieselConnectionManager
An connection manager for use with diesel-async.
ManagerConfig
Configuration object for a Manager.

Enums§

PoolError
The error used when managing connections with deadpool.
RecyclingMethod
Possible methods of how a connection is recycled.

Type Aliases§

RecycleCheckCallback
Type of the recycle check callback for the RecyclingMethod::CustomFunction variant
SetupCallback
Type of the custom setup closure passed to ManagerConfig::custom_setup