Skip to content

Commit 439a5f1

Browse files
authored
Merge pull request #35 from johnchildren/re-export-bb8-run-error
Re-export RunError and PooledConnection from bb8
2 parents 6358fbe + e86b86b commit 439a5f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pooled_connection/bb8.rs

Lines changed: 4 additions & 0 deletions
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)