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

Method wrap

src/database/mock.rs:356–361  ·  view source on GitHub ↗

Wrap each Statement as a single-statement Transaction

(stmts: I)

Source from the content-addressed store, hash-verified

354
355 /// Wrap each Statement as a single-statement Transaction
356 pub fn wrap<I>(stmts: I) -> Vec<Self>
357 where
358 I: IntoIterator<Item = Statement>,
359 {
360 stmts.into_iter().map(Self::one).collect()
361 }
362
363 /// Get the list of statements
364 pub fn statements(&self) -> &[Statement] {

Callers 1

startFunction · 0.80

Calls 1

into_iterMethod · 0.80

Tested by

no test coverage detected