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

Method load_many

src/query/loader.rs:95–104  ·  view source on GitHub ↗
(&self, stmt: S, db: &C)

Source from the content-addressed store, hash-verified

93 }
94
95 async fn load_many<R, S, C>(&self, stmt: S, db: &C) -> Result<Vec<Vec<R::Model>>, DbErr>
96 where
97 C: ConnectionTrait,
98 R: EntityTrait,
99 R::Model: Send + Sync,
100 S: EntityOrSelect<R>,
101 <<Self as LoaderTrait>::Model as ModelTrait>::Entity: Related<R>,
102 {
103 self.as_slice().load_many(stmt, db).await
104 }
105
106 async fn load_many_to_many<R, S, V, C>(
107 &self,

Callers 7

test_load_manyFunction · 0.80
test_load_many_emptyFunction · 0.80
loader_load_manyFunction · 0.80
loader_load_many_multiFunction · 0.80
find_one_to_manyFunction · 0.80

Calls 9

query_errFunction · 0.85
extract_keyFunction · 0.85
prepare_conditionFunction · 0.85
selectMethod · 0.80
pushMethod · 0.80
newFunction · 0.50
allMethod · 0.45
insertMethod · 0.45
getMethod · 0.45

Tested by 6

test_load_manyFunction · 0.64
test_load_many_emptyFunction · 0.64
loader_load_manyFunction · 0.64
loader_load_many_multiFunction · 0.64