From dd33f4c4cac9333a324a0b4d5f3044d11479e779 Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Fri, 17 May 2013 10:33:34 +0200 Subject: [PATCH] Update README.md --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1b812ef..146d942 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# NeDB (Node Embedded DataBase) +# NeDB (Node embedded database) -Embedded persistent database for Node.js, with no dependency (except npm -modules of course). You can think of it as a SQLite for Node.js, which +**Embedded persistent database for Node.js, with no dependency** (except npm +modules of course). You can **think of it as a SQLite for Node.js projects**, which can be installed and used in less than 30 seconds. The API is a subset of MongoDB's. @@ -33,7 +33,7 @@ db = {}; db.users = new Datastore('path/to/users.db'); db.robots = new Datastore('path/to/robots.db'); -// You need to load each database +// You need to load each database (here we do it asynchronously) db.users.loadDatabase(); db.robots.loadDatabase(); ``` @@ -59,9 +59,7 @@ db.insert(document, function (err, newDoc) { // Callback is optional ``` ### Finding documents -For now, you can only select documents based on field equality. You can -use `find` to look for multiple documents matching you query, of -`findOne` to look for one specific document. +You can use `find` to look for multiple documents matching you query, or `findOne` to look for one specific document. For now, you can only select documents based on field equality,but I'm planning to add Mongo's $in, $lt, $gt, $lte and $gte comparison operators. ```javascript // Let's say our datastore contains the following collection