Open JamesMGreene opened 7 years ago
Ideally, a closed database could still be destroyed via db.destroy()
, though!
The way this was implemented in the referenced PR is also favorable in that it compacts the datafile when .close()
is called. :+1:
Can be based primarily on an existing NeDB PR: https://github.com/louischatriot/nedb/pull/414