Insert product values into a table
(
db: &RelationalDB,
table_id: TableId,
rows: impl IntoIterator<Item = ProductValue>,
)
| 475 | |
| 476 | /// Insert product values into a table |
| 477 | fn insert_rows( |
| 478 | db: &RelationalDB, |
| 479 | table_id: TableId, |
| 480 | rows: impl IntoIterator<Item = ProductValue>, |
| 481 | ) -> anyhow::Result<()> { |
| 482 | with_auto_commit(db, |tx| { |
| 483 | for row in rows.into_iter() { |
| 484 | db.insert(tx, table_id, &row.to_bsatn_vec()?)?; |
| 485 | } |
| 486 | Ok(()) |
| 487 | }) |
| 488 | } |
| 489 | |
| 490 | /// Assert this query returns the expected rows for this user |
| 491 | async fn assert_query_results( |
searching dependent graphs…