1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00
joplin/QtClient/JoplinQtClient/database.h

29 lines
396 B
C
Raw Normal View History

2016-12-11 00:39:53 +02:00
#ifndef DATABASE_H
#define DATABASE_H
#include <stable.h>
namespace jop {
class Database {
public:
Database(const QString& path);
Database();
QSqlQuery query(const QString& sql) const;
//QSqlQuery exec(const QString& sql, const QMap<QString, QVariant> &parameters);
private:
QSqlDatabase db_;
void upgrade();
int version() const;
mutable int version_;
};
}
#endif // DATABASE_H