(table_name: &str)
| 366 | } |
| 367 | |
| 368 | fn create_identity_table(table_name: &str) -> ResultTest<(TestDB, TestRows)> { |
| 369 | let stdb = TestDB::durable()?; |
| 370 | let head = ProductType::from([("identity", AlgebraicType::identity())]); |
| 371 | let rows = vec![product!(Identity::ZERO), product!(Identity::ONE)]; |
| 372 | |
| 373 | with_auto_commit(&stdb, |tx| { |
| 374 | create_table_with_rows(&stdb, tx, table_name, head.clone(), &rows, StAccess::Public) |
| 375 | })?; |
| 376 | |
| 377 | Ok((stdb, TestRows { data: rows })) |
| 378 | } |
| 379 | |
| 380 | #[test] |
| 381 | fn test_select_star() -> ResultTest<()> { |
searching dependent graphs…