70717273747576777879
return sql; } public static String toMySqlString(SQLObject sqlObject) { StringBuilder out = new StringBuilder(); sqlObject.accept(new MySqlOutputVisitor(out)); String sql = out.toString(); return sql; }
182183184185186187188189190191192
} if (JdbcUtils.MYSQL.equals(dbType) || // JdbcUtils.MARIADB.equals(dbType) || // JdbcUtils.H2.equals(dbType)) { return new MySqlOutputVisitor(out); } if (JdbcUtils.POSTGRESQL.equals(dbType)) { return new PGOutputVisitor(out); }
139140141142143144145146147148149
private String output(List<SQLStatement> stmtList) { StringBuilder out = new StringBuilder(); for (SQLStatement stmt : stmtList) { stmt.accept(new MySqlOutputVisitor(out)); out.append(";"); } return out.toString(); }
634635636637638639640641642643644
4041424344454647484950
90919293949596979899100
113114115116117118119120121122123
9899100101102103104105106107
output(stmtList); } private void output(List<SQLStatement> stmtList) { for (SQLStatement stmt : stmtList) { stmt.accept(new MySqlOutputVisitor(System.out)); System.out.println(";"); System.out.println(); } }
326327328329330331332333334335336