Commit b85af74e by Konstantin Käfer

update readme

parent f6f7da7d
...@@ -6,12 +6,15 @@ node-sqlite3 - Asynchronous, non-blocking [SQLite3](http://sqlite.org/) bindings ...@@ -6,12 +6,15 @@ node-sqlite3 - Asynchronous, non-blocking [SQLite3](http://sqlite.org/) bindings
# USAGE # USAGE
Install with `npm install sqlite3`
var sqlite3 = require('sqlite3').verbose();
var db = new sqlite3.Database(':memory:'); var db = new sqlite3.Database(':memory:');
db.serialize(function() { db.serialize(function() {
db.run("CREATE TABLE lorem (info TEXT)"); db.run("CREATE TABLE lorem (info TEXT)");
var stmt = db.prepare("INSERT INTO lorem VALUES(?)"); var stmt = db.prepare("INSERT INTO lorem VALUES (?)");
for (var i = 0; i < 10; i++) { for (var i = 0; i < 10; i++) {
stmt.run("Ipsum " + i); stmt.run("Ipsum " + i);
} }
...@@ -272,7 +275,7 @@ To obtain and build the bindings: ...@@ -272,7 +275,7 @@ To obtain and build the bindings:
You can also use [`npm`](https://github.com/isaacs/npm) to download and install them: You can also use [`npm`](https://github.com/isaacs/npm) to download and install them:
npm install https://github.com/developmentseed/node-sqlite3/tarball/master npm install sqlite3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment