Crate async_bb8_diesel

Crate async_bb8_diesel 

Source
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.
ConnectionManager
A connection manager which implements bb8::ManageConnection to integrate with bb8.

Enums§

ConnectionError
Errors returned directly from Connection.
PoolError
Describes an error performing an operation from a connection pool.

Traits§

AsyncConnection
An async variant of diesel::connection::Connection.
AsyncR2D2Connection
An async variant of diesel::r2d2::R2D2Connection.
AsyncRunQueryDsl
An async variant of diesel::query_dsl::RunQueryDsl.
AsyncSaveChangesDsl
AsyncSimpleConnection
An async variant of diesel::connection::SimpleConnection.
OptionalExtension
Async variant of diesel::prelude::OptionalExtension.

Type Aliases§

ConnectionResult
Syntactic sugar around a Result returning an ConnectionError.
PoolResult
Syntactic sugar around a Result returning an PoolError.