123456789101112131415161718192021222324252627 |
- #ifndef SQLDBHELPER_H
- #define SQLDBHELPER_H
- #include "EasyQtSql.h"
- using namespace EasyQtSql;
- class SqlDBHelper
- {
- public:
- enum SqlDBType
- {
- SQLITE3 = 1,
- MYSQL,
- NOTHING
- };
- static QSqlDatabase getDatabase(SqlDBType dbType = SQLITE3,
- const QString &connectionName = QSqlDatabase::defaultConnection);
- static QSqlDatabase getDatabase2(SqlDBType dbType = SQLITE3,
- const QString &connectionName = QSqlDatabase::defaultConnection);
- private:
- static bool configFinished;
- static bool configFinished2;
- };
- #endif // SQLDBHELPER_H
|