@@ -26,25 +26,25 @@ pub trait Executor<'c>: Send + Debug + Sized {
2626 type Database : Database ;
2727
2828 /// Execute the query and return the total number of rows affected.
29- fn execute < ' e , ' q : ' e , E : ' q > (
29+ fn execute < ' e , ' q : ' e , E > (
3030 self ,
3131 query : E ,
3232 ) -> BoxFuture < ' e , Result < <Self :: Database as Database >:: QueryResult , Error > >
3333 where
3434 ' c : ' e ,
35- E : Execute < ' q , Self :: Database > ,
35+ E : Execute < ' q , Self :: Database > + ' q ,
3636 {
3737 self . execute_many ( query) . try_collect ( ) . boxed ( )
3838 }
3939
4040 /// Execute multiple queries and return the rows affected from each query, in a stream.
41- fn execute_many < ' e , ' q : ' e , E : ' q > (
41+ fn execute_many < ' e , ' q : ' e , E > (
4242 self ,
4343 query : E ,
4444 ) -> BoxStream < ' e , Result < <Self :: Database as Database >:: QueryResult , Error > >
4545 where
4646 ' c : ' e ,
47- E : Execute < ' q , Self :: Database > ,
47+ E : Execute < ' q , Self :: Database > + ' q ,
4848 {
4949 self . fetch_many ( query)
5050 . try_filter_map ( |step| async move {
@@ -63,7 +63,7 @@ pub trait Executor<'c>: Send + Debug + Sized {
6363 ) -> BoxStream < ' e , Result < <Self :: Database as Database >:: Row , Error > >
6464 where
6565 ' c : ' e ,
66- E : Execute < ' q , Self :: Database > ,
66+ E : Execute < ' q , Self :: Database > + ' q ,
6767 {
6868 self . fetch_many ( query)
6969 . try_filter_map ( |step| async move {
@@ -77,7 +77,7 @@ pub trait Executor<'c>: Send + Debug + Sized {
7777
7878 /// Execute multiple queries and return the generated results as a stream
7979 /// from each query, in a stream.
80- fn fetch_many < ' e , ' q : ' e , E : ' q > (
80+ fn fetch_many < ' e , ' q : ' e , E > (
8181 self ,
8282 query : E ,
8383 ) -> BoxStream <
@@ -92,25 +92,25 @@ pub trait Executor<'c>: Send + Debug + Sized {
9292 E : Execute < ' q , Self :: Database > ;
9393
9494 /// Execute the query and return all the generated results, collected into a [`Vec`].
95- fn fetch_all < ' e , ' q : ' e , E : ' q > (
95+ fn fetch_all < ' e , ' q : ' e , E > (
9696 self ,
9797 query : E ,
9898 ) -> BoxFuture < ' e , Result < Vec < <Self :: Database as Database >:: Row > , Error > >
9999 where
100100 ' c : ' e ,
101- E : Execute < ' q , Self :: Database > ,
101+ E : Execute < ' q , Self :: Database > + ' q ,
102102 {
103103 self . fetch ( query) . try_collect ( ) . boxed ( )
104104 }
105105
106106 /// Execute the query and returns exactly one row.
107- fn fetch_one < ' e , ' q : ' e , E : ' q > (
107+ fn fetch_one < ' e , ' q : ' e , E > (
108108 self ,
109109 query : E ,
110110 ) -> BoxFuture < ' e , Result < <Self :: Database as Database >:: Row , Error > >
111111 where
112112 ' c : ' e ,
113- E : Execute < ' q , Self :: Database > ,
113+ E : Execute < ' q , Self :: Database > + ' q ,
114114 {
115115 self . fetch_optional ( query)
116116 . and_then ( |row| match row {
@@ -121,7 +121,7 @@ pub trait Executor<'c>: Send + Debug + Sized {
121121 }
122122
123123 /// Execute the query and returns at most one row.
124- fn fetch_optional < ' e , ' q : ' e , E : ' q > (
124+ fn fetch_optional < ' e , ' q : ' e , E > (
125125 self ,
126126 query : E ,
127127 ) -> BoxFuture < ' e , Result < Option < <Self :: Database as Database >:: Row > , Error > >
0 commit comments