var stmt = sql.query(conn_str, "SELECT * from tbl1");
stmt.on('table', function (table) {
console.log('table', table);
})
produces ...
table {
rows: [
{ id: 1, id2: 1, id3: 11, value: 'bob' }
, { id: 3, id2: 2, id3: 12, value: 'fred' }
]
}
My table columns are: id, id2, id3, value
And rows are:
0 = [1,1,11,'bob']
1 = [3,2,12,'fred']