Skip to content

Commit 5d5195d

Browse files
committed
Re-export bb8's RunError and PooledConnection
Re-export type aliases for RunError and PooledConnection for the bb8 connection pool.
1 parent 9221da1 commit 5d5195d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pooled_connection/bb8.rs

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ use bb8::ManageConnection;
4646

4747
/// Type alias for using [`bb8::Pool`] with [`diesel-async`]
4848
pub type Pool<C> = bb8::Pool<AsyncDieselConnectionManager<C>>;
49+
/// Type alias for using [`bb8::PooledConnection`] with [`diesel-async`]
50+
pub type PooledConnection<'a, C> = bb8::PooledConnection<'a, AsyncDieselConnectionManager<C>>;
51+
/// Type alias for using [`bb8::RunError`] with [`diesel-async`]
52+
pub type RunError = bb8::RunError<super::PoolError>;
4953

5054
#[async_trait::async_trait]
5155
impl<C> ManageConnection for AsyncDieselConnectionManager<C>

0 commit comments

Comments
 (0)