Skip to content

Commit 3bb9899

Browse files
committed
updated docs to reflect row datatype change
1 parent 95ee9e6 commit 3bb9899

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ fully TDD and with lots of love.
3939
});
4040

4141
client.connect();
42+
client.on('drain', client.end.bind(client));
4243

4344
var printRow = function(row) {
44-
console.log(row.fields);
45+
console.log(row);
4546
};
4647

4748
var simpleQuery = client.query("select * from user where heart = 'big'");
@@ -61,7 +62,6 @@ fully TDD and with lots of love.
6162
});
6263
cachedPreparedStatement.on('row', printRow);
6364

64-
cachedPreparedStatement.on('end', client.end());
6565

6666
### Philosophy
6767

0 commit comments

Comments
 (0)