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

Function SPACETIMEDB_REDUCER

modules/sdk-test-cpp/src/lib.cpp:688–694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686// =============================================================================
687
688SPACETIMEDB_REDUCER(insert_one_u8, ReducerContext ctx, uint8_t n)
689{
690 LOG_INFO("insert_one_u8 called with value: " + std::to_string(n));
691 ctx.db[one_u8].insert(OneU8{.n = n});
692 LOG_INFO("insert_one_u8 completed");
693 return Ok();
694}
695
696SPACETIMEDB_REDUCER(insert_one_u16, ReducerContext ctx, uint16_t n)
697{

Callers

nothing calls this directly

Calls 12

delete_by_keyMethod · 0.80
insertMethod · 0.65
to_stringFunction · 0.50
OkFunction · 0.50
ErrFunction · 0.50
new_uuid_v4Method · 0.45
new_uuid_v7Method · 0.45
delete_by_valueMethod · 0.45
updateMethod · 0.45
senderMethod · 0.45
valueMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…