16 #include "cleanEntries.hpp"
18 #define MAX_TABLE_CREATION_RETRIES 5
62 std::vector<unsigned long>
queryFileIdsForUpload(
int agentId,
int uploadId,
bool ignoreFilesWithMimeType);
Manages database related requests for agent.
std::vector< unsigned long > queryFileIdsForUpload(int agentId, int uploadId, bool ignoreFilesWithMimeType)
Get the list of pfile ids on which the given agent has no findings for a given upload.
static const ColumnDef columns[]
Columns required by agent in database.
bool createTableAgentFindings() const
Create table to store agent find data.
bool insertInDatabase(DatabaseEntry &entry) const
Insert a finding in database.
static const ColumnDef columnsDecision[]
Columns required to store user decisions in database.
std::string getColumnListString(const ColumnDef in[], size_t size) const
Given a list of ColumnDef, return a comma separated list of column names.
CopyrightDatabaseHandler(fo::DbManager manager)
Constructor to initialize database handler.
CopyrightDatabaseHandler spawn() const
Spawn/fork a new database handler and return it.
bool createTables() const
Create tables required by agent.
std::string getColumnCreationString(const ColumnDef in[], size_t size) const
Return a comma delimited string with column elements separated by space. The string is used for datab...
bool createTableClearing() const
Create table to store user decisions.
Maps agent data to database schema.
std::string type
Type of statement found.
DatabaseEntry()
Default constructor for DatabaseEntry.
Database handler for agents.
DB utility functions for agents.
Holds the column related data for table creation.
const char * creationFlags