JamesMGreene / nestdb

NestDB: An embedded persistent or in-memory database for Node.js, originally forked from NeDB
MIT License
58 stars 7 forks source link

Implement `close` functionality to halt task queueing #3

Open JamesMGreene opened 7 years ago

JamesMGreene commented 7 years ago

Can be based primarily on an existing NeDB PR: https://github.com/louischatriot/nedb/pull/414

JamesMGreene commented 7 years ago

Ideally, a closed database could still be destroyed via db.destroy(), though!

JamesMGreene commented 7 years ago

The way this was implemented in the referenced PR is also favorable in that it compacts the datafile when .close() is called. :+1: