@@ -9,18 +9,18 @@ use crate::{
99use std:: error:: Error ;
1010
1111impl DbConnection for DatabaseConnection {
12- async fn query_rows < ' a > (
12+ async fn query_rows (
1313 & self ,
1414 stmt : & str ,
15- params : & [ & ' a dyn QueryParameter ] ,
15+ params : & [ & ' _ dyn QueryParameter ] ,
1616 ) -> Result < CanyonRows , Box < dyn Error + Send + Sync > > {
1717 db_conn_query_rows_impl ( self , stmt, params) . await
1818 }
1919
20- async fn query < ' a , S , R > (
20+ async fn query < S , R > (
2121 & self ,
2222 stmt : S ,
23- params : & [ & ' a dyn QueryParameter ] ,
23+ params : & [ & ' _ dyn QueryParameter ] ,
2424 ) -> Result < Vec < R > , Box < dyn Error + Send + Sync > >
2525 where
2626 S : AsRef < str > + Send ,
@@ -30,29 +30,29 @@ impl DbConnection for DatabaseConnection {
3030 db_conn_query_impl ( self , stmt, params) . await
3131 }
3232
33- async fn query_one < ' a , R > (
33+ async fn query_one < R > (
3434 & self ,
3535 stmt : & str ,
36- params : & [ & ' a dyn QueryParameter ] ,
36+ params : & [ & ' _ dyn QueryParameter ] ,
3737 ) -> Result < Option < R :: Output > , Box < dyn Error + Send + Sync > >
3838 where
3939 R : RowMapper ,
4040 {
4141 db_conn_query_one_impl :: < R > ( self , stmt, params) . await
4242 }
4343
44- async fn query_one_for < ' a , T : FromSqlOwnedValue < T > > (
44+ async fn query_one_for < T : FromSqlOwnedValue < T > > (
4545 & self ,
4646 stmt : & str ,
47- params : & [ & ' a dyn QueryParameter ] ,
47+ params : & [ & ' _ dyn QueryParameter ] ,
4848 ) -> Result < T , Box < dyn Error + Send + Sync > > {
4949 db_conn_query_one_for_impl :: < T > ( self , stmt, params) . await
5050 }
5151
52- async fn execute < ' a > (
52+ async fn execute (
5353 & self ,
5454 stmt : & str ,
55- params : & [ & ' a dyn QueryParameter ] ,
55+ params : & [ & ' _ dyn QueryParameter ] ,
5656 ) -> Result < u64 , Box < dyn Error + Send + Sync > > {
5757 db_conn_execute_impl ( self , stmt, params) . await
5858 }
@@ -63,18 +63,18 @@ impl DbConnection for DatabaseConnection {
6363}
6464
6565impl DbConnection for & DatabaseConnection {
66- async fn query_rows < ' a > (
66+ async fn query_rows (
6767 & self ,
6868 stmt : & str ,
69- params : & [ & ' a dyn QueryParameter ] ,
69+ params : & [ & ' _ dyn QueryParameter ] ,
7070 ) -> Result < CanyonRows , Box < dyn Error + Send + Sync > > {
7171 db_conn_query_rows_impl ( self , stmt, params) . await
7272 }
7373
74- async fn query < ' a , S , R > (
74+ async fn query < S , R > (
7575 & self ,
7676 stmt : S ,
77- params : & [ & ' a dyn QueryParameter ] ,
77+ params : & [ & ' _ dyn QueryParameter ] ,
7878 ) -> Result < Vec < R > , Box < dyn Error + Send + Sync > >
7979 where
8080 S : AsRef < str > + Send ,
@@ -84,29 +84,29 @@ impl DbConnection for &DatabaseConnection {
8484 db_conn_query_impl ( self , stmt, params) . await
8585 }
8686
87- async fn query_one < ' a , R > (
87+ async fn query_one < R > (
8888 & self ,
8989 stmt : & str ,
90- params : & [ & ' a dyn QueryParameter ] ,
90+ params : & [ & ' _ dyn QueryParameter ] ,
9191 ) -> Result < Option < R :: Output > , Box < dyn Error + Send + Sync > >
9292 where
9393 R : RowMapper ,
9494 {
9595 db_conn_query_one_impl :: < R > ( self , stmt, params) . await
9696 }
9797
98- async fn query_one_for < ' a , T : FromSqlOwnedValue < T > > (
98+ async fn query_one_for < T : FromSqlOwnedValue < T > > (
9999 & self ,
100100 stmt : & str ,
101- params : & [ & ' a dyn QueryParameter ] ,
101+ params : & [ & ' _ dyn QueryParameter ] ,
102102 ) -> Result < T , Box < dyn Error + Send + Sync > > {
103103 db_conn_query_one_for_impl :: < T > ( self , stmt, params) . await
104104 }
105105
106- async fn execute < ' a > (
106+ async fn execute (
107107 & self ,
108108 stmt : & str ,
109- params : & [ & ' a dyn QueryParameter ] ,
109+ params : & [ & ' _ dyn QueryParameter ] ,
110110 ) -> Result < u64 , Box < dyn Error + Send + Sync > > {
111111 db_conn_execute_impl ( self , stmt, params) . await
112112 }
@@ -117,18 +117,18 @@ impl DbConnection for &DatabaseConnection {
117117}
118118
119119impl DbConnection for & mut DatabaseConnection {
120- async fn query_rows < ' a > (
120+ async fn query_rows (
121121 & self ,
122122 stmt : & str ,
123- params : & [ & ' a dyn QueryParameter ] ,
123+ params : & [ & ' _ dyn QueryParameter ] ,
124124 ) -> Result < CanyonRows , Box < dyn Error + Send + Sync > > {
125125 db_conn_query_rows_impl ( self , stmt, params) . await
126126 }
127127
128- async fn query < ' a , S , R > (
128+ async fn query < S , R > (
129129 & self ,
130130 stmt : S ,
131- params : & [ & ' a dyn QueryParameter ] ,
131+ params : & [ & ' _ dyn QueryParameter ] ,
132132 ) -> Result < Vec < R > , Box < dyn Error + Send + Sync > >
133133 where
134134 S : AsRef < str > + Send ,
@@ -138,29 +138,29 @@ impl DbConnection for &mut DatabaseConnection {
138138 db_conn_query_impl ( self , stmt, params) . await
139139 }
140140
141- async fn query_one < ' a , R > (
141+ async fn query_one < R > (
142142 & self ,
143143 stmt : & str ,
144- params : & [ & ' a dyn QueryParameter ] ,
144+ params : & [ & ' _ dyn QueryParameter ] ,
145145 ) -> Result < Option < R :: Output > , Box < dyn Error + Send + Sync > >
146146 where
147147 R : RowMapper ,
148148 {
149149 db_conn_query_one_impl :: < R > ( self , stmt, params) . await
150150 }
151151
152- async fn query_one_for < ' a , T : FromSqlOwnedValue < T > > (
152+ async fn query_one_for < T : FromSqlOwnedValue < T > > (
153153 & self ,
154154 stmt : & str ,
155- params : & [ & ' a dyn QueryParameter ] ,
155+ params : & [ & ' _ dyn QueryParameter ] ,
156156 ) -> Result < T , Box < dyn Error + Send + Sync > > {
157157 db_conn_query_one_for_impl :: < T > ( self , stmt, params) . await
158158 }
159159
160- async fn execute < ' a > (
160+ async fn execute (
161161 & self ,
162162 stmt : & str ,
163- params : & [ & ' a dyn QueryParameter ] ,
163+ params : & [ & ' _ dyn QueryParameter ] ,
164164 ) -> Result < u64 , Box < dyn Error + Send + Sync > > {
165165 db_conn_execute_impl ( self , stmt, params) . await
166166 }
@@ -187,10 +187,10 @@ pub(crate) async fn db_conn_query_rows_impl<'a>(
187187 }
188188}
189189
190- pub ( crate ) async fn db_conn_query_one_impl < ' a , R > (
190+ pub ( crate ) async fn db_conn_query_one_impl < R > (
191191 c : & DatabaseConnection ,
192192 stmt : & str ,
193- params : & [ & ' a ( dyn QueryParameter + ' a ) ] ,
193+ params : & [ & ' _ ( dyn QueryParameter + ' _ ) ] ,
194194) -> Result < Option < R :: Output > , Box < dyn Error + Send + Sync > >
195195where
196196 R : RowMapper ,
@@ -207,10 +207,10 @@ where
207207 }
208208}
209209
210- pub ( crate ) async fn db_conn_query_impl < ' a , S , R > (
210+ pub ( crate ) async fn db_conn_query_impl < S , R > (
211211 c : & DatabaseConnection ,
212212 stmt : S ,
213- params : & [ & ' a dyn QueryParameter ] ,
213+ params : & [ & ' _ dyn QueryParameter ] ,
214214) -> Result < Vec < R > , Box < dyn Error + Send + Sync > >
215215where
216216 S : AsRef < str > + Send ,
@@ -229,10 +229,10 @@ where
229229 }
230230}
231231
232- pub ( crate ) async fn db_conn_query_one_for_impl < ' a , T > (
232+ pub ( crate ) async fn db_conn_query_one_for_impl < T > (
233233 c : & DatabaseConnection ,
234234 stmt : & str ,
235- params : & [ & ' a dyn QueryParameter ] ,
235+ params : & [ & ' _ dyn QueryParameter ] ,
236236) -> Result < T , Box < dyn Error + Send + Sync > >
237237where
238238 T : FromSqlOwnedValue < T > ,
@@ -249,10 +249,10 @@ where
249249 }
250250}
251251
252- pub ( crate ) async fn db_conn_execute_impl < ' a > (
252+ pub ( crate ) async fn db_conn_execute_impl (
253253 c : & DatabaseConnection ,
254254 stmt : & str ,
255- params : & [ & ' a dyn QueryParameter ] ,
255+ params : & [ & ' _ dyn QueryParameter ] ,
256256) -> Result < u64 , Box < dyn Error + Send + Sync > > {
257257 match c {
258258 #[ cfg( feature = "postgres" ) ]
0 commit comments