18 #ifndef LIBFOSS_AGENT_DATABASE_HANDLER_HPP_ 19 #define LIBFOSS_AGENT_DATABASE_HANDLER_HPP_ std::vector< unsigned long > queryFileIdsVectorForUpload(int uploadId, bool ignoreFilesWithMimeType) const
Get pfile ids for a given upload id.
bool commit() const
COMMIT a transaction block in DB.
bool rollback() const
ROLLBACK a transaction block in DB.
char * getPFileNameForFileId(unsigned long pfileId) const
Get the file name of a give pfile id.
Database handler for agents.
std::string queryUploadTreeTableName(int uploadId)
Get the upload tree table name for a given upload id.
virtual ~AgentDatabaseHandler()
AgentDatabaseHandler operator=(const AgentDatabaseHandler &)=delete
bool begin() const
BEGIN a transaction block in DB.
fo namespace holds the FOSSology library functions.
DbManager dbManager
DbManager to use.
AgentDatabaseHandler(DbManager dbManager)