docs: public int[] withBatch(int batchSize, Closure closure) throws SQLException {
          Connection connection = createConnection();
          BatchingStatementWrapper statement = null;
          boolean savedWithinBatch = withinBatch;
          try {
              withinBatch = true;
              statement = new BatchingStatementWrapper(createStatement(connection), batchSize, LOG);
              closure.call(statement);
              return statement.executeBatch();
          } catch (SQLException e) {
              LOG.warning("Error during batch execution: " + e.getMessage());
              throw e;
          } finally {
              closeResources(statement);
              closeResources(connection);
              withinBatch = savedWithinBatch;
          }
      }