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

Method add_multi

src/query/insert.rs:161–170  ·  view source on GitHub ↗
(mut self, models: I)

Source from the content-addressed store, hash-verified

159 note = "Please use [`Insert::add_many`] which does not panic"
160 )]
161 pub fn add_multi<M, I>(mut self, models: I) -> Self
162 where
163 M: IntoActiveModel<A>,
164 I: IntoIterator<Item = M>,
165 {
166 for model in models.into_iter() {
167 self = self.add(model);
168 }
169 self
170 }
171
172 /// Add many Models to Self
173 pub fn add_many<M, I>(mut self, models: I) -> Self

Callers

nothing calls this directly

Calls 2

into_iterMethod · 0.80
addMethod · 0.80

Tested by

no test coverage detected