A C++ command-line application for managing a video game database, backed by SQLite. Add, view, update, delete, and search game records.
This was the first project I built.
- A C++ compiler
- CMake
- SQLite3
cmake -B build
cmake --build build
./build/VGArchiveRun it from the project root. The database path is relative (data/video_game_archive.db),
so launching the binary from inside build/ will fail to open it.
The application presents a menu:
- Add Game: enter title, genre, release date, developer, platform, description, and rating
- View All Games: display everything currently stored
- Update Game Rating: change the rating for a game by title
- Delete Game: remove a game by title
- Search Game: search by title, genre, or platform
- Exit
src/
main.cpp # Application and all database interactions
data/
video_game_archive.db # Pre-populated SQLite database
init_db.sql # Schema initialization script
CMakeLists.txt # Build configuration
The included database is ready to use. To start from an empty one, create it from the schema:
sqlite3 data/video_game_archive.db < data/init_db.sql- SQLite: the database engine used to store game data.