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

29 lines
396 B
C++
Executable File

#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