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

Function insert_user

modules/sdk-test/src/lib.rs:874–877  ·  view source on GitHub ↗
(ctx: &ReducerContext, name: String, identity: Identity)

Source from the content-addressed store, hash-verified

872
873#[spacetimedb::reducer]
874fn 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)]
880struct IndexedSimpleEnum {

Callers

nothing calls this directly

Calls 3

usersMethod · 0.80
insertMethod · 0.65
OkFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…