A database homework project.
gen.cpp is a random generator, it can generates funny books and operations like human input. You can try
./gen > test.in
make run < test.in
init.mysql and drop.mysql are CREATE sentences and DROP sentences. They are used to install and uninstall the database.
ER.png is the ER diagram of this database.
To compile:
make
To run:
make run
To run a siily test from test1.in:
make test1
To initialize the database, go to dir "/src" login with mysql and type
source init.mysql
To clear the database, drop all tables, go to dir "/src" login with mysql and type
source drop.mysql