Skip to content

Commit c57bcb9

Browse files
authored
Hide docs for any (#3254)
1 parent 5da0f73 commit c57bcb9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sqlx-postgres/src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ pub mod types;
2626
mod value;
2727

2828
#[cfg(feature = "any")]
29+
// We are hiding the any module with its AnyConnectionBackend trait
30+
// so that IDEs don't show it in the autocompletion list
31+
// and end users don't accidentally use it. This can result in
32+
// nested transactions not behaving as expected.
33+
// For more information, see https://github.com/launchbadge/sqlx/pull/3254#issuecomment-2144043823
34+
#[doc(hidden)]
2935
pub mod any;
3036

3137
#[cfg(feature = "migrate")]

0 commit comments

Comments
 (0)