lib/utils/jhipster_utils.js
function checkForReservedTableName(args) {
  if (!args) {
    return;
  }
  if (args.databaseTypeName) {
    checkTableName(args.name, args.databaseTypeName, args.shouldThrow);
  } else {
    for (let i = 0, types = Object.keys(DatabaseTypes); i < types.length; i++) {
      if (typeof DatabaseTypes[types[i]] !== 'function') {
        checkTableName(args.name, DatabaseTypes[types[i]], args.shouldThrow);
      }
    }
  }
}
function checkForReservedTableName(args) {
  if (!args) {
    return;
  }
  if (args.databaseTypeName) {
    checkTableName(args.name, args.databaseTypeName, args.shouldThrow);
  } else {
    for (let i = 0, types = Object.keys(DatabaseTypes); i < types.length; i++) {
      if (typeof DatabaseTypes[types[i]] !== 'function') {
        checkTableName(args.name, DatabaseTypes[types[i]], args.shouldThrow);
      }
    }
  }
}
function checkForReservedTableName ( args ) { if ( ! args ) { return ; } if ( args . databaseTypeName ) { checkTableName ( args . name , args . databaseTypeName , args . shouldThrow ) ; } else { for ( let i = 0 , types = Object . keys ( DatabaseTypes ) ; i < types . length ; i ++ ) { if ( typeof DatabaseTypes [ types [ i ] ] !== 'function' ) { checkTableName ( args . name , DatabaseTypes [ types [ i ] ] , args . shouldThrow ) ; } } } }
Checks for reserved table name.
@param args an object having as keys: name, databaseTypeName and shouldThrow
Checks for reserved table name .