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

Function create_identity_table

crates/core/src/sql/execute.rs:368–378  ·  view source on GitHub ↗
(table_name: &str)

Source from the content-addressed store, hash-verified

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

Callers 1

test_sender_paramFunction · 0.85

Calls 5

with_auto_commitFunction · 0.85
create_table_with_rowsFunction · 0.85
identityFunction · 0.50
OkFunction · 0.50
cloneMethod · 0.45

Tested by 1

test_sender_paramFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…