* this file are called in order to allow the DB to be initialized ready
* for access.
*/
-struct onak_dbctx *keydb_pg_init(bool readonly)
+struct onak_dbctx *keydb_pg_init(struct onak_db_config *dbcfg, bool readonly)
{
struct onak_dbctx *dbctx;
PGconn *dbconn;
if (dbctx == NULL) {
return NULL;
}
+ dbctx->config = dbcfg;
dbconn = PQsetdbLogin(config.pg_dbhost, // host
NULL, // port