A modular relational database engine built in C++, designed for learning internal DBMS architecture --- with function-level tracing for deep understanding.
NITCbase simulates core database components like:
- Storage Manager
- Buffer Manager
- Cache Layer
- B+ Tree Indexing
- Query Processing (Algebra + Frontend)
🔍 What makes this special: > A custom tracing system that shows exact function-level execution flow --- ideal for learning and debugging.
- Create / Open / Delete Relations
- Insert / Search Records
- Block-level storage handling
- Attribute & Relation catalogs
- B+ Tree indexing
- Query execution (Select, Project, Join)
- Tracks every function call
- Builds a hierarchical call tree
- Counts repeated calls
(xN) - Helps visualize execution flow and module interaction
. ├── FrontendInterface/ ├── Frontend/ ├── Algebra/ ├── Schema/ ├── BlockAccess/ ├── BPlusTree/ ├── Cache/ ├── Buffer/ ├── Disk_Class/ ├── define/ ├── trace.h ├── trace.cpp ├── main.cpp ├── Makefile
make
./nitcbase
make mode=debug
./nitcbase-debug
make mode=trace
./nitcbase-trace
Add this to any function:
TRACE_FUNC("ModuleName");
- Understand DBMS internals
- See real execution flow
- Learn system-level design
This project is licensed under the MIT License.