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

Method update

examples/jsonrpsee_example/api/src/lib.rs:68–73  ·  view source on GitHub ↗
(&self, p: post::Model)

Source from the content-addressed store, hash-verified

66 }
67
68 async fn update(&self, p: post::Model) -> RpcResult<bool> {
69 Mutation::update_post_by_id(&self.conn, p.id, p)
70 .await
71 .map(|_| true)
72 .internal_call_error()
73 }
74 async fn delete(&self, id: i32) -> RpcResult<bool> {
75 Mutation::delete_post(&self.conn, id)
76 .await

Callers 8

update_post_by_idMethod · 0.45
update_post_by_idMethod · 0.45
update_note_by_idMethod · 0.45
update_post_by_idMethod · 0.45
update_post_by_idMethod · 0.45
insert_and_updateFunction · 0.45
update_post_by_idMethod · 0.45
update_post_by_idMethod · 0.45

Calls 1

internal_call_errorMethod · 0.80

Tested by

no test coverage detected