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

Function insert_bakery

tests/loader_tests.rs:211–219  ·  view source on GitHub ↗
(db: &DbConn, name: &str)

Source from the content-addressed store, hash-verified

209}
210
211pub async fn insert_bakery(db: &DbConn, name: &str) -> Result<bakery::Model, DbErr> {
212 bakery::ActiveModel {
213 name: Set(name.to_owned()),
214 profit_margin: Set(1.0),
215 ..Default::default()
216 }
217 .insert(db)
218 .await
219}
220
221pub async fn insert_baker(db: &DbConn, name: &str, bakery_id: i32) -> Result<baker::Model, DbErr> {
222 baker::ActiveModel {

Callers 4

loader_load_oneFunction · 0.85
loader_load_manyFunction · 0.85
loader_load_many_multiFunction · 0.85
loader_load_many_to_manyFunction · 0.85

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected