Create a `Table` from a `ProductType` without validation.
(ty: ProductType)
| 2471 | |
| 2472 | /// Create a `Table` from a `ProductType` without validation. |
| 2473 | pub(crate) fn table(ty: ProductType) -> Table { |
| 2474 | // Use a fast path here to avoid slowing down Miri in the proptests. |
| 2475 | // Does not perform validation. |
| 2476 | let schema = TableSchema::from_product_type(ty); |
| 2477 | Table::new(schema.into(), SquashedOffset::COMMITTED_STATE) |
| 2478 | } |
| 2479 | |
| 2480 | #[test] |
| 2481 | fn unique_violation_error() { |
searching dependent graphs…