ldb: options.

This commit is contained in:
Christopher Jeffrey 2016-08-18 01:38:41 -07:00
parent 048a99b9ba
commit 4a0eaa6b34
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -36,8 +36,8 @@ function ldb(options) {
return new LowlevelUp(options.location, {
// LevelDB and others
createIfMissing: true,
errorIfExists: false,
createIfMissing: options.createIfMissing !== false,
errorIfExists: options.errorIfExists === true,
compression: options.compression !== false,
cacheSize: options.cacheSize || (8 << 20),
writeBufferSize: options.writeBufferSize || (4 << 20),