Skip to content

About opening and closing the database #197

Description

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?!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions