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

Function insert_with_tx_commit

modules/sdk-test-procedure/src/lib.rs:88–94  ·  view source on GitHub ↗
(ctx: &mut ProcedureContext)

Source from the content-addressed store, hash-verified

86
87#[procedure]
88fn insert_with_tx_commit(ctx: &mut ProcedureContext) {
89 // Insert a row and commit.
90 ctx.with_tx(insert_my_table);
91
92 // Assert that there's a row.
93 assert_row_count(ctx, 1);
94}
95
96#[procedure]
97fn insert_with_tx_rollback(ctx: &mut ProcedureContext) {

Callers

nothing calls this directly

Calls 2

assert_row_countFunction · 0.70
with_txMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…