wallet-core/packages/idb-bridge
2022-02-10 19:53:44 +01:00
..
src idb-bridge: update tests for ava 4.x 2022-02-10 19:53:44 +01:00
.gitignore
.npmignore
package-lock.json missing dependency 2021-02-23 19:29:38 +01:00
package.json idb-bridge: update tests for ava 4.x 2022-02-10 19:53:44 +01:00
README.md
rollup.config.js
tsconfig.json get IDB tests to pass again, add new one 2021-02-16 13:47:00 +01:00

idb-bridge

The idb-bridge package implements the IndexedDB API with multiple backends.

Currently available backends are:

  • sqlite: A SQLite3 database. Can be backed by a file or in memory.
  • memdb: An unoptimized in-memory storage backend. Useful for environments that do not have sqlite.

Known Issues

IndexedDB assumes that after a database has been opened, the set of object stores and indices does not change, even when there is no transaction active. We cannot guarantee this with SQLite.

Acknowledgements

This library is based on the fakeIndexedDB library (https://github.com/dumbmatter/fakeIndexedDB).