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

Method one

src/executor/select.rs:443–448  ·  view source on GitHub ↗

Get one Model from the SELECT query

(self, db: &C)

Source from the content-addressed store, hash-verified

441
442 /// Get one Model from the SELECT query
443 pub async fn one<C>(self, db: &C) -> Result<Option<E::Model>, DbErr>
444 where
445 C: ConnectionTrait,
446 {
447 self.into_model().one(db).await
448 }
449
450 /// Get all Models from the SELECT query
451 pub async fn all<C>(self, db: &C) -> Result<Vec<E::Model>, DbErr>

Calls 4

limitMethod · 0.80
into_selector_rawMethod · 0.80
into_modelMethod · 0.45
query_oneMethod · 0.45

Tested by

no test coverage detected