Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
orlandov committed Mar 30, 2010
1 parent d8a2589 commit 8c0989a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ from the API have been made to improve performance.
db.prepare(sql, function (error, statement) {
if (error) throw error;

statement.bind(0, 'pink', function () {
statement.bind(1, 'pink', function () {

// call step once per row result
statement.step(function (row) {
Expand All @@ -95,15 +95,14 @@ DESCRIPTION

This distribution includes two SQLite version 3 drivers: a low level driver
written in C++ and a high level driver. The latter wraps the former to add
nicer API and per-database query queuing to ensure queries do not clobber each
other.
nicer API.

It's HTML5 WebDatabase'ish but much, much simpler.
It's HTML5 WebDatabasish but much, much simpler.

At the moment, this library is the bare minimum necessary to get results out
of SQLite, but extending either driver should be quite straight forward.

This SQLite interface is incompatible with verison 2.
This SQLite interface is incompatible with version 2.

SQLite's synchronous nature is fundamentally incompatible with a non-blocking
system such as Node. To get around this synchronous calls happen within Node's
Expand All @@ -112,7 +111,7 @@ SQLite's serialized threading mode is used to make sure we use SQLite safely.
See http://www.sqlite.org/threadsafe.html for more info.

The author is aware that SQLite ships with an asynchronous interface. This
interface however lacks the necessariy notification mechanism to alert the
interface however lacks the necessary notification mechanism to alert the
caller when the SQLite call has completed. In other words, to be able to
support callbacks, we use the synchronous driver within a seperate thread.

Expand All @@ -138,6 +137,11 @@ based.
* http://github.com/grumdrig/node-sqlite/
* http://grumdrig.com/node-sqlite/

LICENSE
-------

node-sqlite is BSD licensed.

(c) 2010 Eric Fredricksen

(c) 2010 Orlando Vazquez

0 comments on commit 8c0989a

Please sign in to comment.