emsApplication/sdk/include/opdatabase.h

19 lines
469 B
C
Raw Normal View History

2024-05-24 12:23:42 +08:00
#pragma once
#include <string>
class sqlite3;
class OpDatabase
{
public:
OpDatabase();
~OpDatabase();
void CloseDatabase();
bool OpenDatabase(const std::string& db_file_path);
void InsertMessage(const std::string& ts, const std::string& msg_type, const std::string& fsu, const std::string& content,int topic,int dev_id);
2024-05-29 09:27:48 +08:00
bool QueryUser(const std::string& uname, const std::string& passwd, std::string& resultJson);
2024-05-24 12:23:42 +08:00
protected:
sqlite3* m_pSqliteDb;
private:
};