wallet-core/packages/idb-bridge
2019-11-29 19:25:48 +01:00
..
.vscode WIP: simplify DB queries and error handling 2019-11-20 19:48:43 +01:00
src idb-bridge: enforce store restrictions 2019-11-29 19:25:48 +01:00
.gitignore get rid of web-common and build directory (in favor of just dist/) 2019-08-18 21:30:33 +02:00
.npmignore db import/export and commit callback 2019-08-16 19:05:48 +02:00
.prettierrc idb wip 2019-06-15 22:44:54 +02:00
package.json idb-bridge: fix deletion 2019-11-21 20:40:23 +01:00
README.md idb wip 2019-06-15 22:44:54 +02:00
tsconfig.json version bump / imports 2019-08-16 23:29:29 +02:00
yarn.lock idb-bridge: fix typo in rollback 2019-11-19 19:36:32 +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).