Add a query count method to SQLHelper

This commit is contained in:
Krad
2021-10-14 17:04:59 +08:00
parent 533c15d57c
commit b6c200919f
2 changed files with 17 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
class QSqlDatabase;
#include "CenterAlignSqlTableModel.h"
#include <QString>
#include <QHash>
@@ -15,6 +16,7 @@ public:
static bool Open();
static bool Open(QSqlDatabase* base);
static void Close();
static int QueryCount(QString sql);
static QSqlTableModel* getTable(const QString & tableName);
private:
static QSqlDatabase* defaultDatabase;