Repeating test reducer for scheduled operations
| 242 | |
| 243 | // Repeating test reducer for scheduled operations |
| 244 | SPACETIMEDB_REDUCER(repeating_test, ReducerContext ctx, RepeatingTestArg arg) { |
| 245 | // Log would show delta time since last run |
| 246 | // In C++ we don't have log::trace equivalent yet |
| 247 | auto delta_time = ctx.timestamp.duration_since(arg.prev_time); |
| 248 | LOG_TRACE("Timestamp: " + ctx.timestamp.to_string() + " Delta time: " + delta_time.to_string()); |
| 249 | return Ok(); |
| 250 | } |
| 251 | |
| 252 | // Add a person to the Person table |
| 253 | SPACETIMEDB_REDUCER(add, ReducerContext ctx, std::string name, uint8_t age) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…