- Written in modern C++ and tested for memory leaks
# API
...
...
@@ -52,7 +54,7 @@ db.close();
See the [API documentation](https://github.com/mapbox/node-sqlite3/wiki) in the wiki.
# INSTALLING
# Installing
You can use [`npm`](https://github.com/isaacs/npm) to download and install:
...
...
@@ -67,7 +69,7 @@ It is also possible to make your own build of `sqlite3` from its source instea
It is possible to use the installed package in [node-webkit](https://github.com/rogerwang/node-webkit) instead of the vanilla Node.js, but a rebuild is required before use (see the next section).
# BUILDING FROM THE SOURCE
## Source install
Unless building via `npm install` (which uses its own `node-gyp`) you will need `node-gyp` installed globally:
...
...
@@ -96,7 +98,7 @@ Note, if building against homebrew-installed sqlite on OS X you can do:
./configure --sqlite=/usr/local/opt/sqlite/
make
# REBUILDING FOR NODE-WEBKIT
## Building for node-webkit
Because of ABI differences, only a rebuilt version of `sqlite3` can be used in [node-webkit](https://github.com/rogerwang/node-webkit).
...
...
@@ -121,7 +123,7 @@ Remember the following:
Visit the “[Using Node modules](https://github.com/rogerwang/node-webkit/wiki/Using-Node-modules)” article in the node-webkit's wiki for more details.
# BUILDING AGAINST SQLCIPHER
## Building for sqlcipher
To run node-sqlite3 against sqlcipher you need to compile from source by passing build options like:
...
...
@@ -133,7 +135,7 @@ If your sqlcipher is installed in a custom location, say if you installed it wit