/** * SPDX-FileCopyrightText: 2020 Tobias Fella * * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #pragma once #include class Database : public QObject { Q_OBJECT public: static Database &instance() { static Database _instance; return _instance; } bool execute(QSqlQuery &query); bool execute(const QString &query); private: Database(); int version(); bool migrate(); bool migrateTo1(); void cleanup(); };