Skip to content

Commit f203e6d

Browse files
authored
Exporting a PooledConnection type for mobc (#123)
* Exporting a PooledConnection type for mobc * Unreleased version * Reverting formatting
1 parent 1e18b37 commit f203e6d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All user visible changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/), as described
55
for Rust libraries in [RFC #1105](https://github.com/rust-lang/rfcs/blob/master/text/1105-api-evolution.md)
66

7+
## [Unreleased]
8+
9+
* Added type `diesel_async::pooled_connection::mobc::PooledConnection`
10+
711
## [0.4.1] - 2023-09-01
812

913
* Fixed feature flags for docs.rs

src/pooled_connection/mobc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ use mobc::Manager;
4646
/// Type alias for using [`mobc::Pool`] with [`diesel-async`]
4747
pub type Pool<C> = mobc::Pool<AsyncDieselConnectionManager<C>>;
4848

49+
/// Type alias for using [`mobc::Connection`] with [`diesel-async`]
50+
pub type PooledConnection<C> = mobc::Connection<AsyncDieselConnectionManager<C>>;
51+
4952
/// Type alias for using [`mobc::Builder`] with [`diesel-async`]
5053
pub type Builder<C> = mobc::Builder<AsyncDieselConnectionManager<C>>;
5154

0 commit comments

Comments
 (0)