Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to close DB object? #168

Open
jcubic opened this issue Aug 20, 2023 · 1 comment
Open

How to close DB object? #168

jcubic opened this issue Aug 20, 2023 · 1 comment

Comments

@jcubic
Copy link
Contributor

jcubic commented Aug 20, 2023

I'm working on the Isomorphic-git fork of idb-keyval and I want to replace it with the original. But there is a lack of one function close() that is implemented like this:

    _close() {
        this._init();
        return this._dbp.then(db => {
            db.close();
            this._dbp = undefined;
        });
    }

The fork is pretty outdated in comparison to your library, the only meaningful change besides the close() method is readonly => readwrite.

Can you implement somehow this function using a custom store?

@nine-fox
Copy link

totally agree with this, hope it will be fixed soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants