Database Storage

From RuntimeWiki

Jump to: navigation, search

This feature request is about more advanced local storage features, generally in the flavor of SQL-like capabilities, that are beyond the features available via DOM Storage (which offers simple name-value-pair storage via the localStorage and sessionStorage objects).

There are a couple of draft specs under development. This feature request calls for the W3C, browser teams, and community to agree on a single set of specs for this feature area and implement that feature universally and interoperability across all popular browsers.

At the W3C and among the browser teams, the following specs are under development:

  • IndexedDB - http://www.w3.org/TR/IndexedDB/ - This spec does not force the use of SQL concepts or syntax and instead makes it straightforward to persist JavaScript objects into a data store. It embraces asynchronous approaches and supports advanced database concepts such as transactions, indices, and joins.
  • SQL Storage - http://dev.w3.org/html5/webdatabase/ - This feature comes from Google Gears and is implemented within Safari (including on the iPhone).

Microsoft and Mozilla declared their intention to advance WebSimpleDB and their preference for it over WebDatabase/WebSQLDatabase:

Personal tools