How patry-smrnf/database_og works
Project type and purpose
• This is a standalone MySQL-like database engine written in C++ (per README: “own query language,” “own database structure,” “fully editable database”).
• It exposes a CLI (Misc/app.cpp + main.cpp) that reads user input and dispatches it to internal modules.
File structure
• Top-level:
– CMakeLists.txt → build config
– main.cpp + Misc/app.* → application entry point & CLI loop
• Language layers:
– DQL/… → Data Query Language (SELECT, WHERE, etc.)
– DML/… → Data Manipulation Language (INSERT, UPDATE, DELETE)
– DDL/… → Data Definition Language (CREATE/DROP tables)
• Storage layer:
– Databases/… → database_creator, reader, methods, core structures
• Utilities:
– Headers (*_structures.h) define in-memory representations
Extract README insights
– Custom SQL-like parser & executor
– On-disk storage format + in-memory data structures
– Full CRUD + schema evolution
Detailed callouts (optional for clarity)
• Inside DQL: show “Where_STATEMENT” submodule under DQL
• Inside Databases: group database_creator, database_reader, database_methods under “Storage Engine”
• Header-only struct definitions as data contracts between modules