(ctx: &ReducerContext, count: u32)
| 142 | // ---------- insert bulk ---------- |
| 143 | #[spacetimedb::reducer] |
| 144 | pub fn insert_bulk_position(ctx: &ReducerContext, count: u32) { |
| 145 | for id in 0..count { |
| 146 | ctx.db |
| 147 | .position() |
| 148 | .insert(Position::new(id, id as f32, (id + 5) as f32, (id * 5) as f32)); |
| 149 | } |
| 150 | log::info!("INSERT POSITION: {count}"); |
| 151 | } |
| 152 | |
| 153 | #[spacetimedb::reducer] |
| 154 | pub fn insert_bulk_velocity(ctx: &ReducerContext, count: u32) { |
no test coverage detected
searching dependent graphs…