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

Function remove

examples/loco_starter/src/controllers/notes.rs:57–60  ·  view source on GitHub ↗
(Path(id): Path<i32>, State(ctx): State<AppContext>)

Source from the content-addressed store, hash-verified

55
56#[debug_handler]
57pub async fn remove(Path(id): Path<i32>, State(ctx): State<AppContext>) -> Result<Response> {
58 load_item(&ctx, id).await?.delete(&ctx.db).await?;
59 format::empty()
60}
61
62#[debug_handler]
63pub async fn get_one(Path(id): Path<i32>, State(ctx): State<AppContext>) -> Result<Response> {

Callers

nothing calls this directly

Calls 2

load_itemFunction · 0.70
deleteMethod · 0.45

Tested by

no test coverage detected