async_bb8_diesel/lib.rs
1//! bb8-diesel allows the bb8 asynchronous connection pool
2//! to be used underneath Diesel.
3//!
4//! This is currently implemented against Diesel's synchronous
5//! API, with calls to [`tokio::task::spawn_blocking`] to safely
6//! perform synchronous operations from an asynchronous task.
7
8mod async_traits;
9mod connection;
10mod connection_manager;
11mod error;
12
13pub use async_traits::{
14 AsyncConnection, AsyncR2D2Connection, AsyncRunQueryDsl, AsyncSaveChangesDsl,
15 AsyncSimpleConnection,
16};
17pub use connection::Connection;
18pub use connection_manager::ConnectionManager;
19pub use error::{ConnectionError, ConnectionResult, OptionalExtension, PoolError, PoolResult};