MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / delete_player

Function delete_player

modules/module-test/src/lib.rs:392–398  ·  view source on GitHub ↗
(ctx: &ReducerContext, id: u64)

Source from the content-addressed store, hash-verified

390
391#[spacetimedb::reducer]
392pub fn delete_player(ctx: &ReducerContext, id: u64) -> Result<(), String> {
393 if ctx.db.test_e().id().delete(id) {
394 Ok(())
395 } else {
396 Err(format!("No TestE row with id {id}"))
397 }
398}
399
400#[spacetimedb::reducer]
401pub fn delete_players_by_name(ctx: &ReducerContext, name: String) -> Result<(), String> {

Callers

nothing calls this directly

Calls 4

deleteMethod · 0.65
OkFunction · 0.50
ErrFunction · 0.50
idMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…