| 244 | } |
| 245 | |
| 246 | void 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 | |
| 261 | WAL& StorageManager::getWAL() const { |
| 262 | DASSERT(wal); |
no test coverage detected