lib/utils/setup_connections.js
function getDbName(uri) {
  var parsedMongooseUri = mongoUriParser.parse(uri);
  var dbName = parsedMongooseUri.database;
  return dbName;
}
function getDbName(uri) {
  var parsedMongooseUri = mongoUriParser.parse(uri);
  var dbName = parsedMongooseUri.database;
  return dbName;
}
function getDbName ( uri ) { var parsedMongooseUri = mongoUriParser . parse ( uri ) ; var dbName = parsedMongooseUri . database ; return dbName ; }
Get the database name from the given mongodb uri.
@param {string} uri the mongodb uri
@returns {string} the name of the mongodb database
Get the database name from the given mongodb uri .