增加了下载功能

This commit is contained in:
zjk
2025-02-13 12:58:13 +08:00
parent f83f737a79
commit 734226a33a
4 changed files with 160 additions and 64 deletions
+5
View File
@@ -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