@@ -152,7 +152,9 @@ impl<'a, S: Storage> DBTransaction<'a, S> {
152152 }
153153
154154 /// Fetches all rows for a model inside the current transaction.
155- pub fn fetch < M : Model > ( & mut self ) -> Result < OrmIter < TransactionIter < ' _ > , M > , DatabaseError > {
155+ pub fn fetch < M : Model > (
156+ & mut self ,
157+ ) -> Result < OrmIter < TransactionIter < ' _ , S :: TransactionType < ' a > > , M > , DatabaseError > {
156158 orm_list :: < _ , M > ( self )
157159 }
158160
@@ -164,7 +166,8 @@ impl<'a, S: Storage> DBTransaction<'a, S> {
164166 /// Lists all table names inside the current transaction.
165167 pub fn show_tables (
166168 & mut self ,
167- ) -> Result < ProjectValueIter < TransactionIter < ' _ > , String > , DatabaseError > {
169+ ) -> Result < ProjectValueIter < TransactionIter < ' _ , S :: TransactionType < ' a > > , String > , DatabaseError >
170+ {
168171 Ok ( ProjectValueIter :: new (
169172 self . execute ( & orm_show_tables_statement ( ) , & [ ] ) ?,
170173 ) )
@@ -173,7 +176,8 @@ impl<'a, S: Storage> DBTransaction<'a, S> {
173176 /// Lists all view names inside the current transaction.
174177 pub fn show_views (
175178 & mut self ,
176- ) -> Result < ProjectValueIter < TransactionIter < ' _ > , String > , DatabaseError > {
179+ ) -> Result < ProjectValueIter < TransactionIter < ' _ , S :: TransactionType < ' a > > , String > , DatabaseError >
180+ {
177181 Ok ( ProjectValueIter :: new (
178182 self . execute ( & orm_show_views_statement ( ) , & [ ] ) ?,
179183 ) )
@@ -182,7 +186,8 @@ impl<'a, S: Storage> DBTransaction<'a, S> {
182186 /// Describes the schema of the model table inside the current transaction.
183187 pub fn describe < M : Model > (
184188 & mut self ,
185- ) -> Result < OrmIter < TransactionIter < ' _ > , DescribeColumn > , DatabaseError > {
189+ ) -> Result < OrmIter < TransactionIter < ' _ , S :: TransactionType < ' a > > , DescribeColumn > , DatabaseError >
190+ {
186191 Ok ( self
187192 . execute ( & orm_describe_statement ( M :: table_name ( ) ) , & [ ] ) ?
188193 . orm :: < DescribeColumn > ( ) )
0 commit comments