src/database/database.h

Mon, 26 Feb 2024 16:05:53 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 26 Feb 2024 16:05:53 +0100
changeset 517
64525ab563fc
parent 6
f8474f2c5db9
permissions
-rw-r--r--

Version 0.4.3. Fix add fermentables in products when packaging sugar was defined but no amount was yet set.

#ifndef _DATABASE_H
#define _DATABASE_H
     
#include <QSqlDatabase>
#include <QDebug>
#include <QSettings>


class DataBase : public QObject
{
    Q_OBJECT

public:
    explicit DataBase(QObject *parent = 0);
    ~DataBase();
    bool openDataBase(bool develop);
    void closeDataBase();

private:
    QSqlDatabase    db;
};


static DataBase *db;


#endif

mercurial