Expand description
bb8-diesel allows the bb8 asynchronous connection pool to be used underneath Diesel.
This is currently implemented against Diesel’s synchronous
API, with calls to tokio::task::spawn_blocking to safely
perform synchronous operations from an asynchronous task.
Structs§
- Connection
- An async-safe analogue of any connection that implements
diesel::Connection. - Connection
Manager - A connection manager which implements
bb8::ManageConnectionto integrate with bb8.
Enums§
- Connection
Error - Errors returned directly from Connection.
- Pool
Error - Describes an error performing an operation from a connection pool.
Traits§
- Async
Connection - An async variant of
diesel::connection::Connection. - Async
R2D2 Connection - An async variant of
diesel::r2d2::R2D2Connection. - Async
RunQuery Dsl - An async variant of
diesel::query_dsl::RunQueryDsl. - Async
Save Changes Dsl - Async
Simple Connection - An async variant of
diesel::connection::SimpleConnection. - Optional
Extension - Async variant of diesel::prelude::OptionalExtension.
Type Aliases§
- Connection
Result - Syntactic sugar around a Result returning an
ConnectionError. - Pool
Result - Syntactic sugar around a Result returning an
PoolError.