idb-keyval icon indicating copy to clipboard operation
idb-keyval copied to clipboard

How to close DB object?

Open jcubic opened this issue 1 year ago • 0 comments

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?

jcubic avatar Aug 20 '23 13:08 jcubic