lib/shared-mongo-connections.js
function getMongodbConnection(mongoDbUrl, logger, cb) {
  logger.debug("creating mongodb connection for data_source_update job", {mongoDbUrl: mongoDbUrl});
  MongoClient.connect(mongoDbUrl, cb);
}
function getMongodbConnection(mongoDbUrl, logger, cb) {
  logger.debug("creating mongodb connection for data_source_update job", {mongoDbUrl: mongoDbUrl});
  MongoClient.connect(mongoDbUrl, cb);
}
function getMongodbConnection ( mongoDbUrl , logger , cb ) { logger . debug ( "creating mongodb connection for data_source_update job" , { mongoDbUrl : mongoDbUrl } ) ; MongoClient . connect ( mongoDbUrl , cb ) ; }
Create a new mongodb connection.
@param {string} mongoDbUrl the url to connect to the mongodb database
@param {object} logger
@param {function} cb the callback function
Create a new mongodb connection .