|
| 1 | +#![cfg_attr(doc_cfg, feature(doc_cfg, doc_auto_cfg))] |
1 | 2 | //! Diesel-async provides async variants of diesel releated query functionality
|
2 | 3 | //!
|
3 | 4 | //! diesel-async is an extension to diesel itself. It is designed to be used togehter
|
@@ -71,20 +72,24 @@ use futures::{Future, Stream};
|
71 | 72 | #[cfg(feature = "mysql")]
|
72 | 73 | mod mysql;
|
73 | 74 | #[cfg(feature = "postgres")]
|
74 |
| -mod pg; |
| 75 | +pub mod pg; |
75 | 76 | #[cfg(any(feature = "deadpool", feature = "bb8", feature = "mobc"))]
|
76 | 77 | pub mod pooled_connection;
|
77 | 78 | mod run_query_dsl;
|
78 | 79 | mod stmt_cache;
|
79 | 80 | mod transaction_manager;
|
80 | 81 |
|
81 | 82 | #[cfg(feature = "mysql")]
|
| 83 | +#[doc(inline)] |
82 | 84 | pub use self::mysql::AsyncMysqlConnection;
|
83 | 85 | #[cfg(feature = "postgres")]
|
| 86 | +#[doc(inline)] |
84 | 87 | pub use self::pg::AsyncPgConnection;
|
| 88 | +#[doc(inline)] |
85 | 89 | pub use self::run_query_dsl::*;
|
86 | 90 |
|
87 |
| -use self::transaction_manager::{AnsiTransactionManager, TransactionManager}; |
| 91 | +#[doc(inline)] |
| 92 | +pub use self::transaction_manager::{AnsiTransactionManager, TransactionManager}; |
88 | 93 |
|
89 | 94 | /// Perform simple operations on a backend.
|
90 | 95 | ///
|
@@ -147,7 +152,7 @@ where
|
147 | 152 | /// If the transaction fails to commit due to a `SerializationFailure` or a
|
148 | 153 | /// `ReadOnlyTransaction` a rollback will be attempted.
|
149 | 154 | /// If the rollback fails, the error will be returned in a
|
150 |
| - /// [`Error::RollbackErrorOnCommit`](crate::result::Error::RollbackErrorOnCommit), |
| 155 | + /// [`Error::RollbackErrorOnCommit`](diesel::result::Error::RollbackErrorOnCommit), |
151 | 156 | /// from which you will be able to extract both the original commit error and
|
152 | 157 | /// the rollback error.
|
153 | 158 | /// In addition, the connection will be considered broken
|
|
0 commit comments