Executes a query and streams the resulting rows, ignoring affected counts.
(
&'s mut self,
query: impl AsQuery<Self::Driver> + 's,
)
| 61 | |
| 62 | /// Executes a query and streams the resulting rows, ignoring affected counts. |
| 63 | fn fetch<'s>( |
| 64 | &'s mut self, |
| 65 | query: impl AsQuery<Self::Driver> + 's, |
| 66 | ) -> impl Stream<Item = Result<Row>> + Send { |
| 67 | self.run(query).filter_map(|v| async move { |
| 68 | match v { |
| 69 | Ok(QueryResult::Row(v)) => Some(Ok(v)), |
| 70 | Err(e) => Some(Err(e)), |
| 71 | _ => None, |
| 72 | } |
| 73 | }) |
| 74 | } |
| 75 | |
| 76 | /// Executes a query and returns the total number of affected rows. |
| 77 | fn execute<'s>( |
nothing calls this directly
no test coverage detected