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

Function fruit_model

src/query/loader.rs:465–475  ·  view source on GitHub ↗
(id: i32, cake_id: Option<i32>)

Source from the content-addressed store, hash-verified

463 }
464
465 fn fruit_model(id: i32, cake_id: Option<i32>) -> sea_orm::tests_cfg::fruit::Model {
466 let name = match id {
467 1 => "apple",
468 2 => "orange",
469 3 => "grape",
470 4 => "strawberry",
471 _ => "",
472 }
473 .to_string();
474 sea_orm::tests_cfg::fruit::Model { id, name, cake_id }
475 }
476
477 fn filling_model(id: i32) -> sea_orm::tests_cfg::filling::Model {
478 let name = match id {

Callers 3

test_load_manyFunction · 0.70

Calls

no outgoing calls

Tested by 3

test_load_manyFunction · 0.56