Generates fake data to the SQLite3 DB, then executes a series of pure SQL scripts (from 1 to 13) with queries to the fake data.
-
When main.py executed, asks if you want to re-generate the database.
-
If yes, then re-creates a new SQLite3 DB from the 'script.sql' file.
-
Then generates fake data with 'Faker'. Uses 'groups' and 'subjects' lists during the process.
-
Converts the data to the format that is suitable for the upload to the DB. For example, adds random date for each mark.
-
Uploads everything by replacing values in the pre-set SQL queries.
-
Finishes
-
If no, runs all available scripts that are named by the template.
-
Scripts are filled with the pure SQL queries for the fake data.