|
|
@ -41,8 +41,15 @@ public class SqlExecutor {
|
|
|
|
@Cleanup
|
|
|
|
@Cleanup
|
|
|
|
Statement stmt = conn.createStatement();
|
|
|
|
Statement stmt = conn.createStatement();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
stmt.execute(sql.trim());
|
|
|
|
stmt.execute(sql.trim());
|
|
|
|
log.info("Executed");
|
|
|
|
log.info("Executed");
|
|
|
|
|
|
|
|
} catch (SQLException e) {
|
|
|
|
|
|
|
|
return Result.builder() //
|
|
|
|
|
|
|
|
.exception(e.getClass().getName()) //
|
|
|
|
|
|
|
|
.exceptionMessage(e.getMessage()) //
|
|
|
|
|
|
|
|
.build();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ResultBuilder resultBuilder = Result.builder();
|
|
|
|
ResultBuilder resultBuilder = Result.builder();
|
|
|
|
|
|
|
|
|
|
|
|