title: NodeJS do stuff after fetching all mySql results
body: <p>How to show <code>'Finish'</code> after screening all <code>row.name</code> results ?</p>
  
  <pre><code>npmSql.query("SELECT name FROM sqlTable", function(err, rows, fields) {
    rows.forEach(function(row) {
      console.log(row.name);
    });
  }, function () { console.log('Finish'); });
  </code></pre>
  
  <p>I was trying to follow some answers like <a href="https://stackoverflow.com/questions/10390041/node-js-using-the-async-lib-async-foreach-with-object">Node.js - Using the async lib - async.foreach with object</a> but had no luck :(</p>
  
  <p><strong>Update</strong></p>
  
  <pre><code>function abc() {
      npmSql.query("SELECT name FROM sqlTable", function(err, rows, fields) {
        rows.forEach(function(row) {
          console.log(row.name);
        });
      }, function () { console.log('Finish'); });
  }
  </code></pre>