@@ -140,28 +140,28 @@ impl<'q, DB: Database> Execute<'q, DB> for RawSql<'q> {
140
140
impl < ' q > RawSql < ' q > {
141
141
/// Execute the SQL string and return the total number of rows affected.
142
142
#[ inline]
143
- pub async fn execute < ' e , ' c : ' e , E , DB > (
143
+ pub async fn execute < ' e , E , DB > (
144
144
self ,
145
145
executor : E ,
146
146
) -> crate :: Result < DB :: QueryResult >
147
147
where
148
148
' q : ' e ,
149
149
DB : Database ,
150
- E : Executor < ' c , Database = DB > ,
150
+ E : Executor < ' e , Database = DB > ,
151
151
{
152
152
executor. execute ( self ) . await
153
153
}
154
154
155
155
/// Execute the SQL string. Returns a stream which gives the number of rows affected for each statement in the string.
156
156
#[ inline]
157
- pub fn execute_many < ' e , ' c : ' e , E , DB > (
157
+ pub fn execute_many < ' e , E , DB > (
158
158
self ,
159
159
executor : E ,
160
160
) -> BoxStream < ' e , crate :: Result < DB :: QueryResult > >
161
161
where
162
162
' q : ' e ,
163
163
DB : Database ,
164
- E : Executor < ' c , Database = DB > ,
164
+ E : Executor < ' e , Database = DB > ,
165
165
{
166
166
executor. execute_many ( self )
167
167
}
@@ -170,14 +170,14 @@ impl<'q> RawSql<'q> {
170
170
///
171
171
/// If the string contains multiple statements, their results will be concatenated together.
172
172
#[ inline]
173
- pub fn fetch < ' e , ' c : ' e , E , DB > (
173
+ pub fn fetch < ' e , E , DB > (
174
174
self ,
175
175
executor : E ,
176
176
) -> BoxStream < ' e , Result < DB :: Row , Error > >
177
177
where
178
178
' q : ' e ,
179
179
DB : Database ,
180
- E : Executor < ' c , Database = DB > ,
180
+ E : Executor < ' e , Database = DB > ,
181
181
{
182
182
executor. fetch ( self )
183
183
}
@@ -187,7 +187,7 @@ impl<'q> RawSql<'q> {
187
187
/// For each query in the stream, any generated rows are returned first,
188
188
/// then the `QueryResult` with the number of rows affected.
189
189
#[ inline]
190
- pub fn fetch_many < ' e , ' c : ' e , E , DB > (
190
+ pub fn fetch_many < ' e , E , DB > (
191
191
self ,
192
192
executor : E ,
193
193
) -> BoxStream <
@@ -200,7 +200,7 @@ impl<'q> RawSql<'q> {
200
200
where
201
201
' q : ' e ,
202
202
DB : Database ,
203
- E : Executor < ' c , Database = DB > ,
203
+ E : Executor < ' e , Database = DB > ,
204
204
{
205
205
executor. fetch_many ( self )
206
206
}
@@ -213,14 +213,14 @@ impl<'q> RawSql<'q> {
213
213
/// To avoid exhausting available memory, ensure the result set has a known upper bound,
214
214
/// e.g. using `LIMIT`.
215
215
#[ inline]
216
- pub fn fetch_all < ' e , ' c : ' e , E , DB > (
216
+ pub fn fetch_all < ' e , E , DB > (
217
217
self ,
218
218
executor : E ,
219
219
) -> BoxFuture < ' e , crate :: Result < Vec < DB :: Row > > >
220
220
where
221
221
' q : ' e ,
222
222
DB : Database ,
223
- E : Executor < ' c , Database = DB > ,
223
+ E : Executor < ' e , Database = DB > ,
224
224
{
225
225
executor. fetch_all ( self )
226
226
}
@@ -238,14 +238,14 @@ impl<'q> RawSql<'q> {
238
238
///
239
239
/// Otherwise, you might want to add `LIMIT 1` to your query.
240
240
#[ inline]
241
- pub fn fetch_one < ' e , ' c : ' e , E , DB > (
241
+ pub fn fetch_one < ' e , E , DB > (
242
242
self ,
243
243
executor : E ,
244
244
) -> BoxFuture < ' e , crate :: Result < DB :: Row > >
245
245
where
246
246
' q : ' e ,
247
247
DB : Database ,
248
- E : Executor < ' c , Database = DB > ,
248
+ E : Executor < ' e , Database = DB > ,
249
249
{
250
250
executor. fetch_one ( self )
251
251
}
@@ -263,14 +263,14 @@ impl<'q> RawSql<'q> {
263
263
///
264
264
/// Otherwise, you might want to add `LIMIT 1` to your query.
265
265
#[ inline]
266
- pub async fn fetch_optional < ' e , ' c : ' e , E , DB > (
266
+ pub async fn fetch_optional < ' e , E , DB > (
267
267
self ,
268
268
executor : E ,
269
269
) -> crate :: Result < DB :: Row >
270
270
where
271
271
' q : ' e ,
272
272
DB : Database ,
273
- E : Executor < ' c , Database = DB > ,
273
+ E : Executor < ' e , Database = DB > ,
274
274
{
275
275
executor. fetch_one ( self ) . await
276
276
}
0 commit comments