From: adam Date: Mon, 5 Nov 2012 19:03:11 +0000 (+0700) Subject: minors X-Git-Tag: v1.2.12~642^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7553fe8fb954eaee34737e1a2095b4b3a7d98ba0;p=platform%2Fupstream%2Fejdb.git minors --- diff --git a/README.md b/README.md index ec8f3f0..f1b5749 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ EJDB NodeJS API ### EJDB.open(dbFile, openMode) -Open database. Returns database instance handle object. +Open database. Return database instance handle object.
Default open mode: `JBOWRITER | JBOCREAT`.
This is blocking function. @@ -144,7 +144,7 @@ Check if database in opened state. ### ensureCollection(cname, copts) Automatically creates new collection if it does't exists. -Collection options `copts` are applied only for newly created collection. +Collection options `copts` applied only for newly created collection. For existing collections `copts` takes no effect.
This is blocking function. @@ -182,7 +182,7 @@ Save/update specified JSON objects in the collection. If collection with `cname` does not exists it will be created. Each persistent object has unique identifier (OID) placed in the `_id` property. -If a saved object does not have this `_id` it will be autogenerated. +If a saved object does not have `_id` it will be autogenerated. To identify and update object it should contains `_id` property. Call variations: @@ -202,7 +202,7 @@ __Arguments__
### load(cname, oid, cb) -Loads JSON object identified OID from the collection. +Loads JSON object identified by OID from the collection. __Arguments__ diff --git a/node/ejdb.js b/node/ejdb.js index 323f2db..acee7e9 100644 --- a/node/ejdb.js +++ b/node/ejdb.js @@ -22,7 +22,7 @@ EJDB.DEFAULT_OPEN_MODE = DEFAULT_OPEN_MODE; /** * Open database. - * Returns database instance handle object . + * Return database instance handle object . * * Default open mode: JBOWRITER | JBOCREAT * @@ -104,7 +104,7 @@ EJDB.prototype.removeCollection = function(cname, prune, cb) { * If collection with `cname` does not exists it will be created. * * Each persistent object has unique identifier (OID) placed in the `_id` property. - * If a saved object does not have this `_id` it will be autogenerated. + * If a saved object does not have `_id` it will be autogenerated. * To identify and update object it should contains `_id` property. * * Call variations: @@ -144,7 +144,7 @@ EJDB.prototype.save = function(cname, jsarr, cb) { /** - * Loads JSON object identified OID from the collection. + * Loads JSON object identified by OID from the collection. * * @param {String} cname Name of collection * @param {String} oid Object identifier (OID) diff --git a/node/nbproject/configurations.xml b/node/nbproject/configurations.xml index 73883c9..b3cfa5f 100644 --- a/node/nbproject/configurations.xml +++ b/node/nbproject/configurations.xml @@ -3234,6 +3234,8 @@ + + diff --git a/tcejdb/ejdb.h b/tcejdb/ejdb.h index 243faef..c53cf8a 100644 --- a/tcejdb/ejdb.h +++ b/tcejdb/ejdb.h @@ -144,7 +144,7 @@ EJDB_EXPORT EJCOLL* ejdbgetcoll(EJDB *jb, const char* colname); * * @param jb EJDB handle. * @param colname Name of collection. - * @param opts Options are applied only for newly created collection. + * @param opts Options applied only for newly created collection. * For existing collections it takes no effect. * * @return Collection handle or NULL if error.