Skip to content
Browse files

Reword examples

  • Loading branch information...
1 parent 5a3cfa7 commit a38033d7b7bfea1308f367dc15c92da05949a9d1 @mscdex committed Oct 7, 2012
Showing with 16 additions and 16 deletions.
  1. +16 −16 README.md
View
32 README.md
@@ -58,17 +58,17 @@ c.on('connect', function() {
c.query('SHOW DATABASES')
.on('result', function(res) {
res.on('row', function(row) {
- console.log('Query row: ' + inspect(row));
+ console.log('Result row: ' + inspect(row));
})
.on('error', function(err) {
- console.log('Query error: ' + inspect(err));
+ console.log('Result error: ' + inspect(err));
})
.on('end', function(info) {
- console.log('Query finished successfully');
+ console.log('Result finished successfully');
});
})
.on('end', function() {
- console.log('Done with all queries');
+ console.log('Done with all results');
});
c.end();
@@ -102,34 +102,34 @@ c.query('SELECT * FROM users WHERE id = :id AND name = :name',
{ id: 1337, name: 'Frylock' })
.on('result', function(res) {
res.on('row', function(row) {
- console.log('Query row: ' + inspect(row));
+ console.log('Result row: ' + inspect(row));
})
.on('error', function(err) {
- console.log('Query error: ' + inspect(err));
+ console.log('Result error: ' + inspect(err));
})
.on('end', function(info) {
- console.log('Query finished successfully');
+ console.log('Result finished successfully');
});
})
.on('end', function() {
- console.log('Done with all queries');
+ console.log('Done with all results');
});
c.query('SELECT * FROM users WHERE id = ? AND name = ?',
[ 1337, 'Frylock' ])
.on('result', function(res) {
res.on('row', function(row) {
- console.log('Query row: ' + inspect(row));
+ console.log('Result row: ' + inspect(row));
})
.on('error', function(err) {
- console.log('Query error: ' + inspect(err));
+ console.log('Result error: ' + inspect(err));
})
.on('end', function(info) {
- console.log('Query finished successfully');
+ console.log('Result finished successfully');
});
})
.on('end', function() {
- console.log('Done with all queries');
+ console.log('Done with all results');
});
c.end();
@@ -164,17 +164,17 @@ var pq = c.prepare('SELECT * FROM users WHERE id = :id AND name = :name');
c.query(pq({ id: 1337, name: 'Frylock' }))
.on('result', function(res) {
res.on('row', function(row) {
- console.log('Query row: ' + inspect(row));
+ console.log('Result row: ' + inspect(row));
})
.on('error', function(err) {
- console.log('Query error: ' + inspect(err));
+ console.log('Result error: ' + inspect(err));
})
.on('end', function(info) {
- console.log('Query finished successfully');
+ console.log('Result finished successfully');
});
})
.on('end', function() {
- console.log('Done with all queries');
+ console.log('Done with all results');
});
c.end();

0 comments on commit a38033d

Please sign in to comment.
Something went wrong with that request. Please try again.