Store connection configuration as key value pairs

Add migration for the sqlite database.
Because the Qt SQL library is a bit hard to work with use sqlite through custom wrapper.
This commit is contained in:
eelke 2025-02-22 19:59:24 +01:00
parent 4caccf1000
commit aac55b0ed1
17 changed files with 276439 additions and 384 deletions

View file

@ -2,11 +2,11 @@
#define MASTERCONTROLLER_H
#include <QObject>
#include <QSqlDatabase>
#include <atomic>
#include <future>
#include <map>
#include <memory>
#include "sqlite/SQLiteConnection.h"
class ConnectionController;
@ -23,14 +23,14 @@ public:
void init();
ConnectionController* connectionController();
QSqlDatabase& userConfigDatabase();
SQLiteConnection& userConfigDatabase();
signals:
public slots:
private:
QSqlDatabase m_userConfigDatabase;
SQLiteConnection m_userConfigDatabase;
ConnectionController* m_connectionController = nullptr;
};