Skip to content

Commit e87ee3d

Browse files
committed
Expose PoolOptions
1 parent e818d1a commit e87ee3d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sqlx-core/src/pool/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,11 @@ impl<DB: Database> Pool<DB> {
440440
pub fn connect_options(&self) -> &<DB::Connection as Connection>::Options {
441441
&self.0.connect_options
442442
}
443+
444+
/// Get the options for this pool
445+
pub fn options(&self) -> &PoolOptions<DB> {
446+
&self.0.options
447+
}
443448
}
444449

445450
#[cfg(all(

0 commit comments

Comments
 (0)