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

Method findTableByName

crates/bindings-cpp/src/internal/v9_builder.cpp:315–323  ·  view source on GitHub ↗

Helper to find existing table by name in the module

Source from the content-addressed store, hash-verified

313
314// Helper to find existing table by name in the module
315RawTableDefV9* V9Builder::findTableByName(const std::string& table_name) {
316 auto& module = GetV9Module();
317 for (auto& table : module.tables) {
318 if (table.name == table_name) {
319 return &table;
320 }
321 }
322 return nullptr;
323}
324
325// Helper to create a BTree index for a field
326RawIndexDefV9 V9Builder::createBTreeIndex(const std::string& table_name,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected