This PR introduces a function createMapRequestTable to create an offline map request table with the expected schema, and calls this function in the fetchData and insertDataIntoTable functions if it is found that the database does not exist. This guarantees that the application instantiates a db table when either the MapDashboard or the GenerateMap view is accessed.
Goal
Closes #13.
What I changed
This PR introduces a function
createMapRequestTable
to create an offline map request table with the expected schema, and calls this function in thefetchData
andinsertDataIntoTable
functions if it is found that the database does not exist. This guarantees that the application instantiates a db table when either the MapDashboard or the GenerateMap view is accessed.