18 #ifndef NINKA_AGENT_DATABASE_HANDLER_HPP 19 #define NINKA_AGENT_DATABASE_HANDLER_HPP 23 #include <unordered_map> 34 std::vector<unsigned long> queryFileIdsForUpload(
int uploadId);
35 bool saveLicenseMatch(
int agentId,
long pFileId,
long licenseId,
unsigned percentMatch);
37 void insertOrCacheLicenseIdForName(std::string
const& rfShortName);
38 unsigned long getCachedLicenseIdForName(std::string
const& rfShortName)
const;
41 unsigned long selectOrInsertLicenseIdForName(std::string rfShortname);
43 std::unordered_map<std::string,long> licenseRefCache;
46 #endif // NINKA_AGENT_DATABASE_HANDLER_HPP
Database handler for agents.
DbManager dbManager
DbManager to use.
DB utility functions for agents.