Cannot use persistence methods
Opened this issue · 0 comments
svenyonson commented
persistence.* methods are unavailable in Datastore object.
var Datastore = require("nedb-async-await").Datastore;
var db = {}
db.users = new Datastore({ filename: './nedb/users.db', autoload: true });
db.users.persistence.setAutocompactionInterval(24*60*60*1000)
Error:
db.users.persistence.setAutocompactionInterval(246060*1000)
^
TypeError: Cannot read property 'setAutocompactionInterval' of undefined