(ctx: &ReducerContext, count: u32)
| 80 | // ---------- insert bulk ---------- |
| 81 | #[spacetimedb::reducer] |
| 82 | pub fn insert_bulk_entity(ctx: &ReducerContext, count: u32) { |
| 83 | for id in 0..count { |
| 84 | ctx.db |
| 85 | .entity() |
| 86 | .insert(Entity::new(0, id as f32, (id + 5) as f32, id * 5)); |
| 87 | } |
| 88 | log::info!("INSERT ENTITY: {count}"); |
| 89 | } |
| 90 | |
| 91 | #[spacetimedb::reducer] |
| 92 | pub fn insert_bulk_circle(ctx: &ReducerContext, count: u32) { |
no test coverage detected
searching dependent graphs…