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

Method update

examples/loco_example/src/controllers/notes.rs:16–19  ·  view source on GitHub ↗
(&self, item: &mut ActiveModel)

Source from the content-addressed store, hash-verified

14
15impl Params {
16 fn update(&self, item: &mut ActiveModel) {
17 item.title = Set(self.title.clone());
18 item.content = Set(self.content.clone());
19 }
20}
21
22async fn load_item(ctx: &AppContext, id: i32) -> Result<Model> {

Callers 2

addFunction · 0.45
updateFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected