Commit eb4e5a30 by Nathan Rajlich

Syntax highlighting in the README.

parent 812c5d39
......@@ -8,10 +8,11 @@ node-sqlite3 - Asynchronous, non-blocking [SQLite3](http://sqlite.org/) bindings
Install with `npm install sqlite3`.
var sqlite3 = require('sqlite3').verbose();
var db = new sqlite3.Database(':memory:');
``` js
var sqlite3 = require('sqlite3').verbose();
var db = new sqlite3.Database(':memory:');
db.serialize(function() {
db.serialize(function() {
db.run("CREATE TABLE lorem (info TEXT)");
var stmt = db.prepare("INSERT INTO lorem VALUES (?)");
......@@ -23,9 +24,10 @@ Install with `npm install sqlite3`.
db.each("SELECT rowid AS id, info FROM lorem", function(err, row) {
console.log(row.id + ": " + row.info);
});
});
});
db.close();
db.close();
```
......
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