summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authoradam <adamansky@gmail.com>2012-12-29 00:28:22 +0700
committeradam <adamansky@gmail.com>2012-12-29 00:28:22 +0700
commite64bb42275d148e3aedefbffff23cf4e4afe694f (patch)
tree7536dd54d2fe68172d61ebeb2ff06933a6aa11c5 /node
parente6b6f2fdeae4d0ee37790bef291807b7302df2c9 (diff)
downloadejdb-e64bb42275d148e3aedefbffff23cf4e4afe694f.tar.gz
ejdb-e64bb42275d148e3aedefbffff23cf4e4afe694f.tar.bz2
ejdb-e64bb42275d148e3aedefbffff23cf4e4afe694f.zip
simple collection transaction test
Diffstat (limited to 'node')
-rw-r--r--node/ejdb.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/ejdb.js b/node/ejdb.js
index 66abc00..8d5eb4f 100644
--- a/node/ejdb.js
+++ b/node/ejdb.js
@@ -7,7 +7,7 @@ try {
}
var EJDBImpl = ejdblib.NodeEJDB;
-const DEFAULT_OPEN_MODE = (ejdblib.JBOWRITER | ejdblib.JBOCREAT);
+const DEFAULT_OPEN_MODE = (ejdblib.JBOWRITER | ejdblib.JBOCREAT | ejdblib.JBOTSYNC);
var EJDB = function(dbFile, openMode) {
Object.defineProperty(this, "_impl", {
value : new EJDBImpl(dbFile, (openMode > 0) ? openMode : DEFAULT_OPEN_MODE),