22 #ifndef OJOS_AGENT_DATABASE_HANDLER_HPP 23 #define OJOS_AGENT_DATABASE_HANDLER_HPP 25 #include <unordered_map> 33 #include "ojomatch.hpp" 61 const unsigned long int p) :
62 license_fk(l), agent_fk(a), pfile_fk(p)
83 std::vector<unsigned long> queryFileIdsForScan(
int uploadId,
int agentId,
bool ignoreFilesWithMimeType);
87 const unsigned long fl_fk)
const;
89 unsigned long getLicenseIdForName(std::string
const &rfShortName);
92 unsigned long getCachedLicenseIdForName(
93 std::string
const &rfShortName)
const;
94 unsigned long selectOrInsertLicenseIdForName(std::string rfShortname);
101 #endif // OJOS_AGENT_DATABASE_HANDLER_HPP
Store the results of a regex match.
Database handler for agents.
std::unordered_map< std::string, long > licenseRefCache
The main FOSSology C library.
fo_dbManager * dbManager
fo_dbManager object
General utility functions for CPP.
const unsigned long int agent_fk
OjoDatabaseEntry(const unsigned long int l, const unsigned long int a, const unsigned long int p)
PGresult * queryFileIdsForUpload(fo_dbManager *dbManager, int uploadId, bool ignoreFilesWithMimeType)
Get all file IDs (pfile_fk) for a given upload.
const unsigned long int license_fk
DB utility functions for agents.
const unsigned long int pfile_fk
Store the results of a regex match.