Code documentation of database client
/**
* function to import data processed by backend (stats) into app database
* first check if there is any input file available in folder
* if true then call web worker to run backend code
*/
function database_worker_client()
/**
* stop database import process if required
*/
function stop_database_import()
/**
* function to export database into a json file.
* check >>APP_FOLDER/source/scripts/importExportDatabase.js<< for inner working
*/
function database_export_client()
/**
* stop database export process if required
*/
function stop_database_export()
/**
* function to import database from a json file.
* check >>APP_FOLDER/source/scripts/importExportDatabase.js<< script for working process
*/
function database_import_client()
/**
* stop downloaded database import process if required
*/
function stop_down_database_import()
/**
* function to delete database.
* use this carefully or export data before deleting database.
* once database is deleted then user won't be able to rollback
*/
function delete_database()
/**
* function to persist database of the app so it don't get deleted automatically
* os deletes database when it exceeds quota to avoid that we persist database
* check >>APP_FOLDER/source/scripts/importExportDatabase.js<< for inner working
*/
function persist_database()