21 #include <QCoreApplication>
40 bool commitData(
const QJsonArray &json_arr,
const QString &table_name);
The aDbSetup namespace is responsible for the inital setup of the database when the application is fi...
Definition: adbsetup.cpp:24
bool commitData(const QJsonArray &json_arr, const QString &table_name)
commitData commits the data read from a JSON file into a table in the database.
Definition: adbsetup.cpp:305
bool importTemplateData(bool use_local_ressources)
importTemplateData fills an empty database with the template data (Aircraft, Airports,...
Definition: adbsetup.cpp:346
bool resetUserData()
Empties all user-generated content in the database.
Definition: adbsetup.cpp:384
bool createDatabase()
createDatabase runs a number of CREATE queries that create the database tables and columns.
Definition: adbsetup.cpp:274