Download - Indexed db - the store in the browser
IndexedDBThe Store in your Browser
Rich Internet Applications (Offline) Should you be online to use Rich Internet Applications?
Classes of Applications Intermittently connected applications – Calendar and mail clients
Disconnected applications – Todo Lists or Sticky Notes
Caching Data – User profile and shopping catalog cached on the browser
Complements AppCache standards
Possibilities today Cookies
Local/Session Storage
WebSQLDatabase / Gears
Hello {IndexedDB} Persistent Storage in the Browser
Part of the HTML5 set of specifications Standard still in draft
Object Store: non-relational Put and Get Objects
Iterate over objects
Index on properties
Two Flavors Synchronous – on WebWorkers
Asynchronous – on Global Window object
Concepts + Code Installation and Pre Requisites
Requests
Database – the place where it is all stored
Object Store Stores {Key: Javascript Object} (Structured Cloning Algorithm)
Like Tables in the relational world
Transactions To ensure consistency
Read, Read_Write and Version_Change
Cursor Enumerate over objects using “continue”
Indexes Start cursors on other (non primary key) properties of the object
Resources http://www.w3.org/TR/IndexedDB/
http://msdn.microsoft.com/en-us/scriptjunkie/gg679063
http://tinyurl.com/indexedDB