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

Method select_also

src/query/combine.rs:77–83  ·  view source on GitHub ↗

Selects extra Entity and returns it together with the Entity from `Self`

(mut self, _: F)

Source from the content-addressed store, hash-verified

75
76 /// Selects extra Entity and returns it together with the Entity from `Self`
77 pub fn select_also<F>(mut self, _: F) -> SelectTwo<E, F>
78 where
79 F: EntityTrait,
80 {
81 self = self.apply_alias(SelectA.as_str());
82 SelectTwo::new(self.into_query())
83 }
84
85 /// Makes a SELECT operation in conjunction to another relation
86 pub fn select_with<F>(mut self, _: F) -> SelectTwoMany<E, F>

Callers 2

find_also_relatedMethod · 0.80
and_also_relatedMethod · 0.80

Calls 4

apply_aliasMethod · 0.80
newFunction · 0.50
as_strMethod · 0.45
into_queryMethod · 0.45

Tested by

no test coverage detected