Permalink
Browse files

Update README

  • Loading branch information...
1 parent 9952257 commit 8df79cebfaf281be7bcee7636a50106358e3f2a2 @orlandov orlandov committed Jul 5, 2010
Showing with 5 additions and 2 deletions.
  1. +5 −2 README.md
View
@@ -60,7 +60,7 @@ from the API have been made to improve performance.
db.open("lilponies.db", function () {
var colour = 'pink';
- var sql = 'SELECT name FROM ponies WHERE hair_colour = ?';
+ var sql = 'SELECT name FROM ponies WHERE hair_colour = ? and gemstones = ?';
var ponies = [];
@@ -74,7 +74,10 @@ from the API have been made to improve performance.
db.prepare(sql, function (error, statement) {
if (error) throw error;
- statement.bind(1, 'pink', function () {
+ // fill in the placeholders
+ // Could also have used:
+ // statement.bind($index, $value, function () { ... });
+ statement.bindArray('pink', 4], function () {
// call step once per row result
statement.step(function (row) {

0 comments on commit 8df79ce

Please sign in to comment.