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

Function SPACETIMEDB_INIT

modules/module-test-cpp/src/lib.cpp:233–241  ·  view source on GitHub ↗

Init reducer - called when module is first published COMMENTED OUT FOR DEBUGGING

Source from the content-addressed store, hash-verified

231// Init reducer - called when module is first published
232// COMMENTED OUT FOR DEBUGGING
233SPACETIMEDB_INIT(init, ReducerContext ctx) {
234 RepeatingTestArg arg{
235 0, // scheduled_id
236 ScheduleAt(TimeDuration::from_millis(1000)),
237 ctx.timestamp
238 };
239 //ctx.db[repeating_test_arg].insert(arg);
240 return Ok();
241}
242
243// Repeating test reducer for scheduled operations
244SPACETIMEDB_REDUCER(repeating_test, ReducerContext ctx, RepeatingTestArg arg) {

Callers

nothing calls this directly

Calls 2

ScheduleAtEnum · 0.50
OkFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…