code: public void perform(final Appender ap) 
          throws SQLException, UnsupportedEncodingException {
  
          Connection con = null;
          Statement stmt = null;
          ResultSet rs = null;
  
          try {
              con = JDBC.connect(this.jdbcDriver, this.jdbcUrl, 
                                 this.user, this.pass);
  
              stmt = con.createStatement();
              rs = stmt.executeQuery(this.sql);
  
              appendRows(new ResultIterator(rs), ap, 
                         this.charset, this.formatting, this.cols);
  
          } finally {
              if (rs != null) {
                  try {
                      rs.close();
                  } catch (Exception e) {
                      e.printStackTrace();
                  } // end of catch
              } // end of if
  
              if (stmt != null) {
                  try {
                      stmt.close();
                  } catch (Exception e) {
                      e.printStackTrace();
                  } // end of catch
              } // end of if
  
              if (con != null) {
                  try {
                      con.close();
                  } catch (Exception e) {
                      e.printStackTrace();
                  } // end of catch
              } // end of if
          } // end of finally
      }
docs: Performs export.