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

Method into_model

src/executor/select.rs:176–184  ·  view source on GitHub ↗

Return a [Selector] from `Self` that wraps a [SelectModel]

(self)

Source from the content-addressed store, hash-verified

174
175 /// Return a [Selector] from `Self` that wraps a [SelectModel]
176 pub fn into_model<M>(self) -> Selector<SelectModel<M>>
177 where
178 M: FromQueryResult,
179 {
180 Selector {
181 query: self.query,
182 selector: SelectModel { model: PhantomData },
183 }
184 }
185
186 /// Return a [Selector] from `Self` that wraps a [SelectModel] with a [PartialModel](PartialModelTrait)
187 ///

Callers 12

oneMethod · 0.45
allMethod · 0.45
streamMethod · 0.45
into_partial_modelMethod · 0.45
paginateMethod · 0.45
relatedFunction · 0.45
linkedFunction · 0.45
from_query_result_flatFunction · 0.45
from_query_result_nestedFunction · 0.45

Calls

no outgoing calls

Tested by 7

relatedFunction · 0.36
linkedFunction · 0.36
from_query_result_flatFunction · 0.36
from_query_result_nestedFunction · 0.36