db: more aliases.

This commit is contained in:
Christopher Jeffrey 2016-09-10 22:13:49 -07:00
parent 7414e1b65f
commit f3a4a0fb30
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -47,7 +47,7 @@ function ldb(options) {
// For LMDB if we decide to use it:
sync: options.sync || false,
mapSize: options.mapSize || 2 * (1024 << 20),
mapSize: options.mapSize || 10 * (1024 << 20),
writeMap: options.writeMap || false,
noSubdir: options.noSubdir !== false,
@ -71,16 +71,19 @@ ldb.getBackend = function getBackend(db) {
db = 'memory';
switch (db) {
case 'ldb':
case 'leveldb':
case 'leveldown':
name = 'leveldown';
ext = 'ldb';
break;
case 'rdb':
case 'rocksdb':
case 'rocksdown':
name = 'rocksdown';
ext = 'rdb';
break;
case 'mdb':
case 'lmdb':
name = 'lmdb';
ext = 'mdb';