Function
insert_user
(ctx: &ReducerContext, name: String, identity: Identity)
Source from the content-addressed store, hash-verified
| 872 | |
| 873 | #[spacetimedb::reducer] |
| 874 | fn insert_user(ctx: &ReducerContext, name: String, identity: Identity) -> anyhow::Result<()> { |
| 875 | ctx.db.users().insert(Users { name, identity }); |
| 876 | Ok(()) |
| 877 | } |
| 878 | |
| 879 | #[spacetimedb::table(accessor = indexed_simple_enum, public)] |
| 880 | struct IndexedSimpleEnum { |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…