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

Function insert_my_table

modules/sdk-test-procedure-cpp/src/lib.cpp:94–98  ·  view source on GitHub ↗

Helper function to insert a row

Source from the content-addressed store, hash-verified

92
93// Helper function to insert a row
94void insert_my_table(TxContext& tx) {
95 tx.db[my_table].insert(MyTable{
96 ReturnStruct{42, "magic"}
97 });
98}
99
100// Helper function to assert row count
101void assert_row_count(ProcedureContext& ctx, uint64_t count) {

Callers 1

SPACETIMEDB_PROCEDUREFunction · 0.70

Calls 1

insertMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…