mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
29 lines
396 B
C++
Executable File
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> ¶meters);
|
|
|
|
private:
|
|
|
|
QSqlDatabase db_;
|
|
void upgrade();
|
|
int version() const;
|
|
mutable int version_;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // DATABASE_H
|