(total_rows: u64)
| 352 | } |
| 353 | |
| 354 | fn create_data(total_rows: u64) -> ResultTest<(TestDB, TestRows)> { |
| 355 | let stdb = TestDB::durable()?; |
| 356 | |
| 357 | let rows: Vec<_> = (1..=total_rows) |
| 358 | .map(|i| product!(i, format!("health{i}").into_boxed_str())) |
| 359 | .collect(); |
| 360 | let head = ProductType::from([("inventory_id", AlgebraicType::U64), ("name", AlgebraicType::String)]); |
| 361 | |
| 362 | with_auto_commit(&stdb, |tx| { |
| 363 | create_table_with_rows(&stdb, tx, "inventory", head.clone(), &rows, StAccess::Public) |
| 364 | })?; |
| 365 | Ok((stdb, TestRows { data: rows })) |
| 366 | } |
| 367 | |
| 368 | fn create_identity_table(table_name: &str) -> ResultTest<(TestDB, TestRows)> { |
| 369 | let stdb = TestDB::durable()?; |
searching dependent graphs…