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

Method insert

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

Source from the content-addressed store, hash-verified

58 }
59
60 async fn insert(&self, p: post::Model) -> RpcResult<i32> {
61 let new_post = Mutation::create_post(&self.conn, p)
62 .await
63 .internal_call_error()?;
64
65 Ok(new_post.id.unwrap())
66 }
67
68 async fn update(&self, p: post::Model) -> RpcResult<bool> {
69 Mutation::update_post_by_id(&self.conn, p.id, p)

Callers 15

uploadFunction · 0.45
addFunction · 0.45
create_with_passwordMethod · 0.45
upMethod · 0.45
upMethod · 0.45
upMethod · 0.45
list_postsFunction · 0.45
edit_postFunction · 0.45
post_responseFunction · 0.45
listFunction · 0.45
editFunction · 0.45
addFunction · 0.45

Calls 3

create_postFunction · 0.85
internal_call_errorMethod · 0.80
unwrapMethod · 0.80

Tested by

no test coverage detected