| | |
| | |
|
| | | /** 添加创建一级设备表 keyValuesToAdd 需要添加的列名和列值对map*/
|
| | | mysqlpp::SimpleResult addVssDevTbl(std::map<std::string, std::string>& keyValuesToAdd) {
|
| | | QMutexLocker mutexLocker(&m_mutexVisit);
|
| | | return add(keyValuesToAdd, VSSDevTbl_TABLE_NAME);
|
| | | }
|
| | |
|
| | |
| | |
|
| | | /** 删除创建一级设备表 whereColumnNameValues 列名和列值对条件 */
|
| | | bool deleteVssDevTbl(std::map<std::string, std::string>& whereKeyValues) {
|
| | | QMutexLocker mutexLocker(&m_mutexVisit);
|
| | | return del(VSSDevTbl_TABLE_NAME, whereKeyValues);
|
| | | }
|
| | |
|
| | | /** 更新创建一级设备表 keyValuesToUpdate 需要更新的列名和列值对; whereKeyValues 列名和列值条件 */
|
| | | bool updateVssDevTbl(std::map<std::string, std::string>& keyValuesToUpdate,
|
| | | std::map<std::string, std::string>& whereKeyValues) {
|
| | | QMutexLocker mutexLocker(&m_mutexVisit);
|
| | | return update(keyValuesToUpdate, VSSDevTbl_TABLE_NAME, whereKeyValues);
|
| | | }
|
| | |
|
| | |
| | |
|
| | | /** 查询创建一级设备表列表 querySql 要查询的sql语句 */
|
| | | vector<VssDevTbl> findVssDevTblList(string querySql) {
|
| | | QMutexLocker mutexLocker(&m_mutexVisit);
|
| | | vector<VssDevTbl> vssDevTblVec;
|
| | | vector<map<string, string>> rowDatList = findList(querySql);
|
| | | vssDevTblVec.reserve(rowDatList.size());
|
| | |
| | |
|
| | | /** 查询map列表 querySql 要查询的sql语句 */
|
| | | vector<map<string, string>> findMapList(string querySql) {
|
| | | QMutexLocker mutexLocker(&m_mutexVisit);
|
| | | return findList(querySql);
|
| | | }
|
| | |
|
| | | /** 执行sql语句 */
|
| | | bool execute(string sql) {
|
| | | QMutexLocker mutexLocker(&m_mutexVisit);
|
| | | return exec(move(sql));
|
| | | }
|
| | |
|