增加了下载功能
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "json/json.h"
|
||||
// #include <nlohmann/json.hpp>
|
||||
|
||||
using namespace std;
|
||||
struct PowerData {
|
||||
std::string timestamp;
|
||||
double voltage;
|
||||
@@ -38,8 +39,12 @@ public:
|
||||
//使用函数
|
||||
bool isDatabaseConnected(const std::string& path, const std::string& dbName);
|
||||
|
||||
//获取数据库状态函数
|
||||
string getDBPatch();
|
||||
|
||||
private:
|
||||
sqlite3* m_db;
|
||||
string m_dbPath;
|
||||
};
|
||||
|
||||
#endif // SQLITEDB_H
|
||||
|
||||
Reference in New Issue
Block a user