Function
delete_player
(ctx: &ReducerContext, id: u64)
Source from the content-addressed store, hash-verified
| 390 | |
| 391 | #[spacetimedb::reducer] |
| 392 | pub 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] |
| 401 | pub fn delete_players_by_name(ctx: &ReducerContext, name: String) -> Result<(), String> { |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…