mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-29 20:05:38 +03:00
ввел мьютекс на запросы SQL работает
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define DATABASELMS_H
|
||||
|
||||
#include <QSqlDatabase>
|
||||
#include <QMutex>
|
||||
|
||||
#include "instructor.h"
|
||||
#include "trainee.h"
|
||||
@@ -73,6 +74,9 @@ protected:
|
||||
|
||||
private:
|
||||
int queryExecInt(QString queryStr);
|
||||
QString queryExecString(QString queryStr);
|
||||
bool queryExecBool(QString queryStr);
|
||||
bool queryExec(QString queryStr, QSqlQuery* query);
|
||||
void messageWarningErrorQuery(QString queryStr, QSqlQuery* query);
|
||||
|
||||
protected:
|
||||
@@ -83,6 +87,8 @@ private:
|
||||
const QString dbUserName = "postgres";
|
||||
const QString dbPassword = "12345678";
|
||||
const QString dbType = "QPSQL";
|
||||
|
||||
QMutex mtxAccess;
|
||||
};
|
||||
|
||||
#endif // DATABASELMS_H
|
||||
|
||||
Reference in New Issue
Block a user