| | |
| | | #include <stdarg.h> |
| | | #include <jsoncpp/json/json.h> |
| | | #include <arpa/inet.h> |
| | | #include <SqliteToolkit.hpp> |
| | | |
| | | #include "erl_interface.h" |
| | | #include "ei.h" |
| | |
| | | private: |
| | | void initCNode(); |
| | | |
| | | bool getExecSqlResult(const std::string &strSql); |
| | | |
| | | public: |
| | | //#todo setCNodeName |
| | | |
| | |
| | | * @param TableName |
| | | * @param SyncType true 1||false 0 |
| | | * @param BwType "Black"1||"White"0 |
| | | * @param StartTime |
| | | * @param EndTime |
| | | * @return 创建状态 |
| | | */ |
| | | bool createDatabase(std::string TableType, std::string TableName, bool SyncType, std::string BwType, |
| | | std::string StartTime = "", std::string EndTime = ""); |
| | | |
| | | /*** |
| | | * 创建底库表 |
| | | * @param TableType TableType car||person |
| | | * @param TableName |
| | | * @param SyncType true 1||false 0 |
| | | * @param BwType "Black"1||"White"0 |
| | | * @param UploadFlag 是否上传 |
| | | * @param CmpThreshold 对比阈值 |
| | | * @param Enabled 是否启用 |
| | | * @param StartTime |
| | | * @param EndTime |
| | | * @return |
| | | */ |
| | | bool createDatabase(std::string t_tableName, FieldValues &fieldValues); |
| | | |
| | | /*** |
| | | * 更新底库表 |
| | |
| | | bool updateDatabase(std::string UUID, std::string TableType, std::string TableName, bool SyncType, |
| | | std::string BwType, std::string StartTime = "", std::string EndTime = ""); |
| | | |
| | | bool updateDatabase(std::string t_tableName, FieldValues &fieldValues); |
| | | |
| | | /*** |
| | | * 删除数据表 |
| | | * @param TableType car||person |
| | |
| | | * @return |
| | | */ |
| | | bool deleteDatabase(std::string TableType, std::string TableName, bool SyncType); |
| | | |
| | | bool deleteDatabase(std::string t_tableName); |
| | | |
| | | /*** |
| | | * 查询所有数据表 |
| | |
| | | std::string IdCard = " ", std::string PersonName = " ", std::string Age = " ", |
| | | std::string Sex = " ", std::string PhoneNum = " "); |
| | | |
| | | bool |
| | | ErlangTool::ErlangDbTool::addPerson(std::string t_tableName, AddFaceData &faceData, FieldValues &fieldValues); |
| | | |
| | | bool updatePerson(std::string t_tableName, AddFaceData &faceData, FieldValues &fieldValues); |
| | | |
| | | vec_AddDataCache addPersons(std::string TableUuid, std::vector<SyncDB::AddPersonInfo> &tmpPer); |
| | | |
| | | /*** |