From 9afa9713e4b941b6949f187ca2333ff38e337713 Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 20 Dec 2012 23:07:41 +0700 Subject: [PATCH] v1.0.30 --- Changelog | 4 ++-- README.md | 8 ++++++++ node/ejdb.js | 8 ++++++++ package.json | 2 +- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Changelog b/Changelog index 4f0cc8c..dff55a6 100644 --- a/Changelog +++ b/Changelog @@ -1,7 +1,7 @@ -2012-12-15 Anton Adamansky. +2012-12-20 Anton Adamansky. * Initial version of EJDB CLI console * All db methods are synchronous if no callback provided - - Release 1.0.29 + - Release 1.0.30 2012-12-15 Anton Adamansky. * Added EJDB.isValidOID() into nodejs API diff --git a/README.md b/README.md index 8035f53..009705e 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,14 @@ Check if database in opened state. Automatically creates new collection if it does't exists. Collection options `copts` applied only for newly created collection. For existing collections `copts` takes no effect. + +Collection options (copts): + + * cachedrecords : Max number of cached records in shared memory segment. Default: 0 + * records : Estimated number of records in this collection. Default: 65535. + * large : Specifies that the size of the database can be larger than 2GB. Default: false + * compress : If true collection records will be compressed with DEFLATE compression. Default: false. +
This is blocking function. __Arguments__ diff --git a/node/ejdb.js b/node/ejdb.js index 26d3c5a..e2db70a 100644 --- a/node/ejdb.js +++ b/node/ejdb.js @@ -87,6 +87,14 @@ EJDB.prototype.isOpen = function() { * are applied only for newly created collection. * For existing collections `copts` takes no effect. * + * Collection options (copts): + * { + * "cachedrecords" : Max number of cached records in shared memory segment. Default: 0 + * "records" : Estimated number of records in this collection. Default: 65535. + * "large" : Specifies that the size of the database can be larger than 2GB. Default: false + * "compress" : If true collection records will be compressed with DEFLATE compression. Default: false. + * } + * * This is blocking function. * * @param {String} cname Name of collection. diff --git a/package.json b/package.json index 8638171..9134af0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name" : "ejdb", - "version" : "1.0.29", + "version" : "1.0.30", "main" : "node/ejdb.js", "description" : "EJDB - Embedded JSON Database engine", "homepage" : "http://ejdb.org", -- 2.7.4