Creating an IndexedDB Data Source

The Indexed Database API (IndexedDB) is a W3C recommendation for exposing a database in the browser. The IndexedDB recommendation is supported by Firefox 12+, Chrome 19+, and IE 10+. And, of course, the IndexedDB recommendation is supported by Windows Store apps.

Behind the scenes, different browsers use different databases behind the IndexedDB API. For example, Firefox uses SqlLite and IE uses SQLCE. The IndexedDB API provides a standard way to interact with these databases across browsers and across platforms.

If you need to store lots of data in a Windows Store app, and query subsets of the data, then IndexedDB is a good choice. Because IndexedDB supports indexes and cursors, you can work efficiently with ...

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.