(
&'a self,
stmt: Statement,
)
| 435 | |
| 436 | #[instrument(level = "trace")] |
| 437 | fn stream<'a>( |
| 438 | &'a self, |
| 439 | stmt: Statement, |
| 440 | ) -> Pin<Box<dyn Future<Output = Result<Self::Stream<'a>, DbErr>> + 'a + Send>> { |
| 441 | Box::pin(async move { |
| 442 | let conn = self.conn.lock().await; |
| 443 | Ok(crate::TransactionStream::build( |
| 444 | conn, |
| 445 | stmt, |
| 446 | self.metric_callback.clone(), |
| 447 | )) |
| 448 | }) |
| 449 | } |
| 450 | } |
| 451 | |
| 452 | #[async_trait::async_trait] |