Skip to content

Commit d948c07

Browse files
committed
chore(raw_sql): try not adding another lifetime param
1 parent 444d34c commit d948c07

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

sqlx-core/src/raw_sql.rs

+14-14
Original file line numberDiff line numberDiff line change
@@ -140,28 +140,28 @@ impl<'q, DB: Database> Execute<'q, DB> for RawSql<'q> {
140140
impl<'q> RawSql<'q> {
141141
/// Execute the SQL string and return the total number of rows affected.
142142
#[inline]
143-
pub async fn execute<'e, 'c: 'e, E, DB>(
143+
pub async fn execute<'e, E, DB>(
144144
self,
145145
executor: E,
146146
) -> crate::Result<DB::QueryResult>
147147
where
148148
'q: 'e,
149149
DB: Database,
150-
E: Executor<'c, Database = DB>,
150+
E: Executor<'e, Database = DB>,
151151
{
152152
executor.execute(self).await
153153
}
154154

155155
/// Execute the SQL string. Returns a stream which gives the number of rows affected for each statement in the string.
156156
#[inline]
157-
pub fn execute_many<'e, 'c: 'e, E, DB>(
157+
pub fn execute_many<'e, E, DB>(
158158
self,
159159
executor: E,
160160
) -> BoxStream<'e, crate::Result<DB::QueryResult>>
161161
where
162162
'q: 'e,
163163
DB: Database,
164-
E: Executor<'c, Database = DB>,
164+
E: Executor<'e, Database = DB>,
165165
{
166166
executor.execute_many(self)
167167
}
@@ -170,14 +170,14 @@ impl<'q> RawSql<'q> {
170170
///
171171
/// If the string contains multiple statements, their results will be concatenated together.
172172
#[inline]
173-
pub fn fetch<'e, 'c: 'e, E, DB>(
173+
pub fn fetch<'e, E, DB>(
174174
self,
175175
executor: E,
176176
) -> BoxStream<'e, Result<DB::Row, Error>>
177177
where
178178
'q: 'e,
179179
DB: Database,
180-
E: Executor<'c, Database = DB>,
180+
E: Executor<'e, Database = DB>,
181181
{
182182
executor.fetch(self)
183183
}
@@ -187,7 +187,7 @@ impl<'q> RawSql<'q> {
187187
/// For each query in the stream, any generated rows are returned first,
188188
/// then the `QueryResult` with the number of rows affected.
189189
#[inline]
190-
pub fn fetch_many<'e, 'c: 'e, E, DB>(
190+
pub fn fetch_many<'e, E, DB>(
191191
self,
192192
executor: E,
193193
) -> BoxStream<
@@ -200,7 +200,7 @@ impl<'q> RawSql<'q> {
200200
where
201201
'q: 'e,
202202
DB: Database,
203-
E: Executor<'c, Database = DB>,
203+
E: Executor<'e, Database = DB>,
204204
{
205205
executor.fetch_many(self)
206206
}
@@ -213,14 +213,14 @@ impl<'q> RawSql<'q> {
213213
/// To avoid exhausting available memory, ensure the result set has a known upper bound,
214214
/// e.g. using `LIMIT`.
215215
#[inline]
216-
pub fn fetch_all<'e, 'c: 'e, E, DB>(
216+
pub fn fetch_all<'e, E, DB>(
217217
self,
218218
executor: E,
219219
) -> BoxFuture<'e, crate::Result<Vec<DB::Row>>>
220220
where
221221
'q: 'e,
222222
DB: Database,
223-
E: Executor<'c, Database = DB>,
223+
E: Executor<'e, Database = DB>,
224224
{
225225
executor.fetch_all(self)
226226
}
@@ -238,14 +238,14 @@ impl<'q> RawSql<'q> {
238238
///
239239
/// Otherwise, you might want to add `LIMIT 1` to your query.
240240
#[inline]
241-
pub fn fetch_one<'e, 'c: 'e, E, DB>(
241+
pub fn fetch_one<'e, E, DB>(
242242
self,
243243
executor: E,
244244
) -> BoxFuture<'e, crate::Result<DB::Row>>
245245
where
246246
'q: 'e,
247247
DB: Database,
248-
E: Executor<'c, Database = DB>,
248+
E: Executor<'e, Database = DB>,
249249
{
250250
executor.fetch_one(self)
251251
}
@@ -263,14 +263,14 @@ impl<'q> RawSql<'q> {
263263
///
264264
/// Otherwise, you might want to add `LIMIT 1` to your query.
265265
#[inline]
266-
pub async fn fetch_optional<'e, 'c: 'e, E, DB>(
266+
pub async fn fetch_optional<'e, E, DB>(
267267
self,
268268
executor: E,
269269
) -> crate::Result<DB::Row>
270270
where
271271
'q: 'e,
272272
DB: Database,
273-
E: Executor<'c, Database = DB>,
273+
E: Executor<'e, Database = DB>,
274274
{
275275
executor.fetch_one(self).await
276276
}

0 commit comments

Comments
 (0)