Hey, awesome community! How u doing?
From the docs about close():
You should always clean up your levelup instance by calling close() when you no longer need it to free up resources.
and also from the docs about open():
However, it is possible to reopen the store after it has been closed with close(), although this is not generally advised.
So If I got it, I should open the database using level() to execute some operations and, as soon as possible, I should close it using close(). What about after that, when I need to execute some more operations? What is the best way to reopen it and close it again?!
Hey, awesome community! How u doing?
From the docs about close():
and also from the docs about open():
So If I got it, I should open the database using level() to execute some operations and, as soon as possible, I should close it using close(). What about after that, when I need to execute some more operations? What is the best way to reopen it and close it again?!