11 #include "libfossscheduler.h"
12 #include "libfossagent.h"
154 va_start(args, queryFormat);
155 char* queryString = g_strdup_vprintf(queryFormat, args);
173 va_start(args, stmt);
174 PGresult* pgResult = fo_dbManager_ExecPreparedv(stmt, args);
DB manager deleter (for shared pointer)
QueryResult execPrepared(fo_dbManager_PreparedStatement *stmt,...) const
Execute a prepared statement with new parameters.
bool tableExists(const char *tableName) const
void ignoreWarnings(bool) const
QueryResult queryPrintf(const char *queryFormat,...) const
Execute a query in printf format.
unptr::shared_ptr< fo_dbManager > dbManager
Shared DB manager.
PGconn * getConnection() const
bool sequenceExists(const char *name) const
fo_dbManager * getStruct_dbManager() const
DbManager(int *argc, char **argv)
Constructor for DbManager.
static fo_dbManager * doConnect(int *argc, char **argv)
Get the C wrapper for DB manager.
static unptr::shared_ptr< fo_dbManager > makeShared(fo_dbManager *p)
Get a shared pointer for DB manager.
void fo_scheduler_connect_dbMan(int *argc, char **argv, fo_dbManager **dbManager)
Make a connection from an agent to the scheduler and create a DB manager as well.
fo_dbManager * dbManager
fo_dbManager object
fo namespace holds the FOSSology library functions.