wallet-core/packages/idb-bridge
2019-08-16 22:36:04 +02:00
..
.vscode idb-bridge: test cases, package structure and missing functionality 2019-07-31 01:33:23 +02:00
src only invoke afterCommitCallback for transactions that change data 2019-08-16 22:35:44 +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 bump idb-bridge version 2019-08-16 22:36:04 +02:00
README.md idb wip 2019-06-15 22:44:54 +02:00
tsconfig.json only invoke afterCommitCallback for transactions that change data 2019-08-16 22:35:44 +02:00
yarn.lock db import/export and commit callback 2019-08-16 19:05:48 +02: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).