return sb.toString();
}
// run beeline on the given sentry store scrip, flatten the nested scripts into single file
private void runBeeLine(String scriptDir, String scriptFile) throws IOException {
NestedScriptParser dbCommandParser =
SentrySchemaHelper.getDbCommandParser(dbType);
dbCommandParser.setDbOpts(getDbOpts());
// expand the nested script
String sqlCommands = buildCommand(dbCommandParser, scriptDir, scriptFile);
File tmpFile = File.createTempFile("schematool", ".sql");
tmpFile.deleteOnExit();