Convert into a cursor using column of second entity
(self, order_columns: C)
| 451 | |
| 452 | /// Convert into a cursor using column of second entity |
| 453 | pub fn cursor_by_other<C>(self, order_columns: C) -> Cursor<SelectTwoModel<M, N>> |
| 454 | where |
| 455 | C: IdentityOf<F>, |
| 456 | { |
| 457 | let primary_keys: Vec<(DynIden, Identity)> = <E::PrimaryKey as Iterable>::iter() |
| 458 | .map(|pk| { |
| 459 | ( |
| 460 | SeaRc::new(E::default()), |
| 461 | Identity::Unary(SeaRc::new(pk.into_column())), |
| 462 | ) |
| 463 | }) |
| 464 | .collect(); |
| 465 | let mut cursor = Cursor::new( |
| 466 | self.query, |
| 467 | SeaRc::new(F::default()), |
| 468 | order_columns.identity_of(), |
| 469 | ); |
| 470 | cursor.set_secondary_order_by(primary_keys); |
| 471 | cursor |
| 472 | } |
| 473 | } |
| 474 | |
| 475 | impl<E, F, G, M, N, O> SelectThree<E, F, G> |
nothing calls this directly
no test coverage detected