Skip to content

Commit

Permalink
Expose PoolOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukesor committed Jun 13, 2022
1 parent e818d1a commit e87ee3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sqlx-core/src/pool/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,11 @@ impl<DB: Database> Pool<DB> {
pub fn connect_options(&self) -> &<DB::Connection as Connection>::Options {
&self.0.connect_options
}

/// Get the options for this pool
pub fn options(&self) -> &PoolOptions<DB> {
&self.0.options
}
}

#[cfg(all(
Expand Down

0 comments on commit e87ee3d

Please sign in to comment.