Query and executeNoQuery method for SQLHelper

This commit is contained in:
Krad
2021-11-11 14:08:44 +08:00
parent 9d61be2445
commit 2c83a26f06
2 changed files with 26 additions and 0 deletions

View File

@@ -16,7 +16,9 @@ public:
static bool Open();
static bool Open(QSqlDatabase* base);
static void Close();
static void Query(QString sql,QMap<QString,QVariant>& result);
static int QueryCount(QString sql);
static int ExecuteNoQuery(QString sql);
static QSqlTableModel* getTable(const QString & tableName);
private:
static QSqlDatabase* defaultDatabase;