MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / table

Function table

crates/table/src/table.rs:2473–2478  ·  view source on GitHub ↗

Create a `Table` from a `ProductType` without validation.

(ty: ProductType)

Source from the content-addressed store, hash-verified

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() {

Callers 15

insert_retrieve_bodyFunction · 0.70
test_blob_store_bytesFunction · 0.70
get_row_ref_no_panicFunction · 0.70
schema.tsFile · 0.50
schema.tsFile · 0.50
schema.tsFile · 0.50

Calls 1

newFunction · 0.50

Used in the wild real call sites across dependent graphs

searching dependent graphs…