seald / nedb

The JavaScript Database, for Node.js, nw.js, electron and the browser
MIT License
351 stars 32 forks source link

Is there a way to close a DataStore? #29

Closed g5becks closed 1 year ago

g5becks commented 1 year ago

Hi, is there was a way to close a datastore? I looked around the api couldn't find an answer.

I have a situation where I am trying to conserve memory in my process and have - say 8 Datastores open at once, I would like to be able to close them and reopen them as needed at a later time.

Thanks.

tex0l commented 1 year ago

No there's no possibility to close a Datastore. However you can do the following: