MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / createTable

Method createTable

src/storage/storage_manager.cpp:246–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246void StorageManager::createTable(TableCatalogEntry* entry, main::ClientContext* context) {
247 std::unique_lock lck{mtx};
248 switch (entry->getType()) {
249 case CatalogEntryType::NODE_TABLE_ENTRY: {
250 createNodeTable(entry->ptrCast<NodeTableCatalogEntry>(), context);
251 } break;
252 case CatalogEntryType::REL_GROUP_ENTRY: {
253 createRelTableGroup(entry->ptrCast<RelGroupCatalogEntry>(), context);
254 } break;
255 default: {
256 UNREACHABLE_CODE;
257 }
258 }
259}
260
261WAL& StorageManager::getWAL() const {
262 DASSERT(wal);

Callers 3

executeInternalMethod · 0.80
createGraphMethod · 0.80

Calls 1

getTypeMethod · 0.45

Tested by

no test coverage detected