We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55222e7 commit cfd2c5dCopy full SHA for cfd2c5d
sqlx-core/src/pool/options.rs
@@ -378,7 +378,7 @@ impl<DB: Database> PoolOptions<DB> {
378
/// use sqlx::postgres::PgPoolOptions;
379
///
380
/// let pool = PgPoolOptions::new()
381
- /// .after_connect(move |opts, _num_attempts| Box::pin(async move {
+ /// .before_connect(move |opts, _num_attempts| Box::pin(async move {
382
/// Ok(Cow::Owned(opts.clone().password("abc")))
383
/// }))
384
/// .connect("postgres:// …").await?;
0 commit comments