This commit is contained in:
Brian Carlson 2011-06-02 01:17:55 -07:00
parent 1e3305729d
commit d33ebd8b0a

View File

@ -58,7 +58,7 @@ node-postgres supports both an 'event emitter' style API and a 'callback' style.
name: 'insert beatle', name: 'insert beatle',
values: ['Paul', 63, new Date(1945, 04, 03)] values: ['Paul', 63, new Date(1945, 04, 03)]
}); });
var query = client.query("SELECT * FROM beatles WHERE name = $1", ['john']); var query = client.query("SELECT * FROM beatles WHERE name = $1", ['John']);
//can stream row results back 1 at a time //can stream row results back 1 at a time
query.on('row', function(row) { query.on('row', function(row) {