[package renamed to 'indexeddb-js']
Welcome to the
Database) API. Being "stop-gap", it currently does not implement all
IndexedDB API features and can only use
sqlite3 as a data storage
This module is not intended to provide a "production" level implementation: it is a "stop-gap" measure while we (the community) wait for a more robust/native implementation for node-js. As such, it was created to allow unit-testing of other projects (such as jssyncml, which require that you provide access to an indexedDB API, but need to be unit-tested in any environment, including non-browser environments.
If time permits, and/or others are willing to contribute, it may one day graduate to a less "stop-gap" measure.
There are many IndexedDB API items that are not implemented, which include but are not limited to:
True transaction support, i.e. transaction isolation, aborting (rollback), and transaction events (oncomplete).
Proper meta-information upgrade management.
Many of the dynamic public API properties of various object types.
Compliance with any of the DOMException errors.
Many non-critical API methods, including:
Performance and efficiency (it was implemented one Saturday afternoon).
Non-sqlite3 data stores.
This is the easy part, provided you have
npm install jsindexeddb sqlite3
A quick example of how to use
jsindexeddb implements the Indexed Database API as
accurately as possible, so just
google for the specification and
many good tutorials. My favorite:
jsindexeddb uses jasmine for
the testing infrastructure; in the jsindexeddb directory:
npm install jasmine-node make tests