From 438b5bc0efb33bfeb2e237a8c8db8c1affb7339a Mon Sep 17 00:00:00 2001 From: Forest Anderson Date: Tue, 13 Feb 2024 11:00:29 -0500 Subject: [PATCH] Add mock feature flag docs --- src/database/db_connection.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/database/db_connection.rs b/src/database/db_connection.rs index 74f95b238..2cf5577a4 100644 --- a/src/database/db_connection.rs +++ b/src/database/db_connection.rs @@ -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