Stream the results of a SELECT operation on a Model
(
self,
db: &'a C,
)
| 457 | |
| 458 | /// Stream the results of a SELECT operation on a Model |
| 459 | pub async fn stream<'a: 'b, 'b, C>( |
| 460 | self, |
| 461 | db: &'a C, |
| 462 | ) -> Result<impl Stream<Item = Result<E::Model, DbErr>> + 'b + Send, DbErr> |
| 463 | where |
| 464 | C: ConnectionTrait + StreamTrait + Send, |
| 465 | { |
| 466 | self.into_model().stream(db).await |
| 467 | } |
| 468 | |
| 469 | /// Stream the result of the operation with PartialModel |
| 470 | pub async fn stream_partial_model<'a: 'b, 'b, C, M>( |