7171 S : BuildHasher + Clone ,
7272 DeserApi : DeserializationApiKind ,
7373{
74- /// Builds a [`CachingSession`] from a [`Session`], a cache size, and a [`BuildHasher`]. ,
75- /// using a customer hasher.
74+ /// Builds a [`CachingSession`] from a [`Session`](GenericSession) , a cache size,
75+ /// and a [`BuildHasher`], using a customer hasher.
7676 pub fn with_hasher ( session : GenericSession < DeserApi > , cache_size : usize , hasher : S ) -> Self {
7777 Self {
7878 session,
@@ -86,7 +86,8 @@ impl<S> GenericCachingSession<CurrentDeserializationApi, S>
8686where
8787 S : BuildHasher + Clone ,
8888{
89- /// Does the same thing as [`Session::execute_unpaged`] but uses the prepared statement cache
89+ /// Does the same thing as [`Session::execute_unpaged`](GenericSession::execute_unpaged)
90+ /// but uses the prepared statement cache.
9091 pub async fn execute_unpaged (
9192 & self ,
9293 query : impl Into < Query > ,
9798 self . session . execute_unpaged ( & prepared, values) . await
9899 }
99100
100- /// Does the same thing as [`Session::execute_iter`] but uses the prepared statement cache
101+ /// Does the same thing as [`Session::execute_iter`](GenericSession::execute_iter)
102+ /// but uses the prepared statement cache.
101103 pub async fn execute_iter (
102104 & self ,
103105 query : impl Into < Query > ,
@@ -108,7 +110,8 @@ where
108110 self . session . execute_iter ( prepared, values) . await
109111 }
110112
111- /// Does the same thing as [`Session::execute_single_page`] but uses the prepared statement cache
113+ /// Does the same thing as [`Session::execute_single_page`](GenericSession::execute_single_page)
114+ /// but uses the prepared statement cache.
112115 pub async fn execute_single_page (
113116 & self ,
114117 query : impl Into < Query > ,
@@ -122,8 +125,10 @@ where
122125 . await
123126 }
124127
125- /// Does the same thing as [`Session::batch`] but uses the prepared statement cache\
126- /// Prepares batch using CachingSession::prepare_batch if needed and then executes it
128+ /// Does the same thing as [`Session::batch`](GenericSession::batch) but uses the
129+ /// prepared statement cache.\
130+ /// Prepares batch using [`CachingSession::prepare_batch`](GenericCachingSession::prepare_batch)
131+ /// if needed and then executes it.
127132 pub async fn batch (
128133 & self ,
129134 batch : & Batch ,
@@ -148,7 +153,8 @@ impl<S> GenericCachingSession<LegacyDeserializationApi, S>
148153where
149154 S : BuildHasher + Clone ,
150155{
151- /// Does the same thing as [`Session::execute_unpaged`] but uses the prepared statement cache
156+ /// Does the same thing as [`Session::execute_unpaged`](GenericSession::execute_unpaged)
157+ /// but uses the prepared statement cache.
152158 pub async fn execute_unpaged (
153159 & self ,
154160 query : impl Into < Query > ,
@@ -159,7 +165,8 @@ where
159165 self . session . execute_unpaged ( & prepared, values) . await
160166 }
161167
162- /// Does the same thing as [`Session::execute_iter`] but uses the prepared statement cache
168+ /// Does the same thing as [`Session::execute_iter`](GenericSession::execute_iter)
169+ /// but uses the prepared statement cache.
163170 pub async fn execute_iter (
164171 & self ,
165172 query : impl Into < Query > ,
@@ -170,7 +177,8 @@ where
170177 self . session . execute_iter ( prepared, values) . await
171178 }
172179
173- /// Does the same thing as [`Session::execute_single_page`] but uses the prepared statement cache
180+ /// Does the same thing as [`Session::execute_single_page`](GenericSession::execute_single_page)
181+ /// but uses the prepared statement cache.
174182 pub async fn execute_single_page (
175183 & self ,
176184 query : impl Into < Query > ,
@@ -184,8 +192,9 @@ where
184192 . await
185193 }
186194
187- /// Does the same thing as [`Session::batch`] but uses the prepared statement cache\
188- /// Prepares batch using CachingSession::prepare_batch if needed and then executes it
195+ /// Does the same thing as [`Session::batch`](GenericSession::batch) but uses
196+ /// the prepared statement cache.\
197+ /// Prepares batch using CachingSession::prepare_batch if needed and then executes it.
189198 pub async fn batch (
190199 & self ,
191200 batch : & Batch ,
0 commit comments