增加了数据库功能,采用直接编译源码的方式,不使用动态库链接

This commit is contained in:
zjk
2025-05-14 23:27:35 +08:00
parent b7a624334e
commit 47079f79df
14 changed files with 310515 additions and 328 deletions
+30
View File
@@ -0,0 +1,30 @@
#ifndef SQLITE_H
#define SQLITE_H
#include "sqlite3.h"
#include <string>
#include "../pmSysvariable.h"
class SQLite
{
private:
sqlite3* m_db;
public:
std::string m_dbPath;
SQLite(const std::string& dbName);
~SQLite();
//创建表
bool createTable();
bool createTable(const std::string& tableName, const std::string& columns);
// 插入数据函数
bool insertData(ccuState data);
bool insertData(disHighVolBusState data);
bool insertData(disHighAVolBusState data);
bool insertData(disLowMainBusState data);
bool insertData(disLowBusState data);
};
#endif