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