code: public static List<String> readSQLFromFile(InputStream fileInputStream) {
  		String content = IOUtils.readText(fileInputStream);
  
  		// remove comments
  		content = content.replaceAll("\\/\\*.*\\*\\/", "");
  		content = content.replaceAll("--.*\n", "");
  		content = content.replaceAll("\n", "");
  
  		String[] c = content.split(";");
  		List<String> commands = new ArrayList<>();
  		for (String i : c) {
  			if (StringUtils.hasText(i)) {
  				commands.add(i.trim());
  			}
  		}
  
  		return commands;
  
  	}
docs: Read SQL from file.
  
  @param fileInputStream
  the file input stream
  @return the list