How lucasfrusci/minidb works
MiniDB is an embeddable file-backed database with an interactive command-line front end. A user starts the application, which loads a database and routes commands for table creation, deletion, row insertion, listing, saving, or switching database files. Database owns persistence and table collection management; tables own schemas, row insertion, and formatted display, with Row representing individual records. The README documents these capabilities; the shown source establishes the main call paths and file reads/writes.
Main entry points: app.cpp Application · db.cpp Database manager · main.cpp CLI entry · table.cpp Table
Components 8
Command interface
- CLI entry
src/main.cpp - Application
src/app.cpp - Command menu
src/menu.cpp
Database management
- Database manager
src/db.cpp - Database file
Other components
- User
Connections 8
- User → CLI entry: starts
src/main.cpp - CLI entry → Application: runs
src/main.cpp - Application → Database manager: loads and commands
src/app.cpp - Application → Command menu: displays
src/app.cpp - Application → Database manager: lists tables
src/app.cpp - Database manager → Database file: reads and writes
src/db.cpp - Database manager → Table: manages tables
src/db.cpp - Table → Row: stores and displays
src/table.cpp