mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-04-16 01:11:13 +00:00
doc: use the fancy new intra-crate doc links everywhere
This commit is contained in:
committed by
Austin Bonander
parent
ef6c73c985
commit
2890d154a3
@@ -51,9 +51,8 @@
|
||||
//! ```
|
||||
//!
|
||||
//! A connection or transaction may also be manually acquired with
|
||||
//! [`Pool::acquire`][Pool::acquire] or
|
||||
//! [`Pool::begin`][Pool::begin].
|
||||
//!
|
||||
//! [`Pool::acquire`] or
|
||||
//! [`Pool::begin`].
|
||||
|
||||
use self::inner::SharedPool;
|
||||
use crate::connection::Connection;
|
||||
|
||||
@@ -77,8 +77,8 @@ impl<DB: Database> PoolOptions<DB> {
|
||||
/// If any connection is reaped by [`max_lifetime`] or [`idle_timeout`] and it brings
|
||||
/// the connection count below this amount, a new connection will be opened to replace it.
|
||||
///
|
||||
/// [`max_lifetime`]: #method.max_lifetime
|
||||
/// [`idle_timeout`]: #method.idle_timeout
|
||||
/// [`max_lifetime`]: Self::max_lifetime
|
||||
/// [`idle_timeout`]: Self::idle_timeout
|
||||
pub fn min_connections(mut self, min: u32) -> Self {
|
||||
self.min_connections = min;
|
||||
self
|
||||
@@ -97,7 +97,7 @@ impl<DB: Database> PoolOptions<DB> {
|
||||
/// (parse trees, query metadata caches, thread-local storage, etc.) that are associated with a
|
||||
/// session.
|
||||
///
|
||||
/// [`idle_timeout`]: #method.idle_timeout
|
||||
/// [`idle_timeout`]: Self::idle_timeout
|
||||
pub fn max_lifetime(mut self, lifetime: impl Into<Option<Duration>>) -> Self {
|
||||
self.max_lifetime = lifetime.into();
|
||||
self
|
||||
@@ -117,8 +117,6 @@ impl<DB: Database> PoolOptions<DB> {
|
||||
/// before returning the connection.
|
||||
///
|
||||
/// Defaults to `true`.
|
||||
///
|
||||
/// [`Connection::ping`]: crate::connection::Connection::ping
|
||||
pub fn test_before_acquire(mut self, test: bool) -> Self {
|
||||
self.test_before_acquire = test;
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user