jakearchibald / idb-keyval

A super-simple-small promise-based keyval store implemented with IndexedDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to close DB object?

jcubic opened this issue · 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?