Azure/node-sqlserver

DataTable event listenner

Closed this issue · 1 comments

As noted in comments in #107 it would be nice to receive a DataTable event 'table' and how to do with current event listeners (gist) ...
https://gist.github.com/4668128

on('table', function (table) {
  console.log(table);
  /* 1st Row:
 table.rows[0] = {columnA: valueA, columnB: valueB}; 

  A table
  table.rows = [
    {columnA: valueA0, columnB: valueB0},
    {columnA: valueA1, columnB: valueB1}
  ]
*/
} 

I've forked this, and put something together, it works!
Might need to be tidied up a bit.

Take a look: MRdNk@fb50ad4
Would welcome feedback, and happily take pull requests.

Haven't had time to read & sign the contributors thing yet, but will put in a pull request, once I have some feedback and time to read & sign.