Timesheets-Server
Timesheets server
Načítám...
Vyhledávám...
Nebylo nic nalezeno
msqlquery.h
Zobrazit dokumentaci tohoto souboru.
1
5#ifndef _MSQLQUERY_H_
6#define _MSQLQUERY_H_
7
8#include <QSqlQuery>
9#include <QSqlDatabase>
10#include <QString>
11#include <QVariant>
12
13namespace Db {
14
18class MSqlQuery : public QSqlQuery {
19 public:
20 ~MSqlQuery();
21 MSqlQuery();
22 MSqlQuery(QSqlDatabase);
23
24 bool exec (const QString& query);
25 bool exec ();
26
27 void begin();
28 void rollback();
29 bool commit();
30 QString lastBoundQuery() const;
31
32 private:
33 void jeChyba();
34
35 bool m_inTransaction;
36 bool m_rollback;
37 bool m_success;
38 bool m_commit;
39
40};
41
42}
43
44#endif
Vlastní rozšíření QSqlQuery o primitivní transakce a logování
Definition msqlquery.h:18