MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / join_rev

Method join_rev

src/query/helper.rs:399–402  ·  view source on GitHub ↗

Join via [`RelationDef`] but in reverse direction. Assume when there exist a relation A to B. You can reverse join B from A.

(mut self, join: JoinType, rel: RelationDef)

Source from the content-addressed store, hash-verified

397 /// Assume when there exist a relation A to B.
398 /// You can reverse join B from A.
399 fn join_rev(mut self, join: JoinType, rel: RelationDef) -> Self {
400 self.query().join(join, rel.from_tbl.clone(), rel);
401 self
402 }
403
404 /// Join via [`RelationDef`] with table alias.
405 fn join_as<I>(mut self, join: JoinType, mut rel: RelationDef, alias: I) -> Self

Callers 3

reverse_joinMethod · 0.80
join_join_revMethod · 0.80
mainFunction · 0.80

Implementers 1

cursor.rssrc/executor/cursor.rs

Calls 2

joinMethod · 0.80
queryMethod · 0.45

Tested by

no test coverage detected