From c57bcb967ff3008fc9a10bfd4dc46605e27ab247 Mon Sep 17 00:00:00 2001 From: Dario Heinisch Date: Thu, 6 Jun 2024 03:21:10 +0200 Subject: [PATCH] Hide docs for any (#3254) --- sqlx-postgres/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sqlx-postgres/src/lib.rs b/sqlx-postgres/src/lib.rs index 994693ec..c50f5306 100644 --- a/sqlx-postgres/src/lib.rs +++ b/sqlx-postgres/src/lib.rs @@ -26,6 +26,12 @@ pub mod types; mod value; #[cfg(feature = "any")] +// We are hiding the any module with its AnyConnectionBackend trait +// so that IDEs don't show it in the autocompletion list +// and end users don't accidentally use it. This can result in +// nested transactions not behaving as expected. +// For more information, see https://github.com/launchbadge/sqlx/pull/3254#issuecomment-2144043823 +#[doc(hidden)] pub mod any; #[cfg(feature = "migrate")]