Add mock feature flag docs (#2109)

This commit is contained in:
Forest Anderson 2024-02-28 15:04:12 -05:00 committed by GitHub
parent 8025199499
commit 88fafa57d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,8 +13,9 @@ use sqlx::pool::PoolConnection;
#[cfg(any(feature = "mock", feature = "proxy"))]
use std::sync::Arc;
/// Handle a database connection depending on the backend
/// enabled by the feature flags. This creates a database pool.
/// Handle a database connection depending on the backend enabled by the feature
/// flags. This creates a database pool. This will be `Clone` unless the feature
/// flag `mock` is enabled.
#[cfg_attr(not(feature = "mock"), derive(Clone))]
pub enum DatabaseConnection {
/// Create a MYSQL database connection and pool