Skip to content

Commit e86b86b

Browse files
committed
Re-export bb8's RunError and PooledConnection
Re-export type aliases for RunError and PooledConnection for the bb8 connection pool. I consent that I transfer the ownership of this change to weiznich (Georg Semmler).
1 parent 6358fbe commit e86b86b

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
@@ -47,6 +47,10 @@ use bb8::ManageConnection;
4747

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

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

0 commit comments

Comments
 (0)