Indexed Database API

本页使用了标题或全文手工转换
维基百科,自由的百科全书

Indexed Database API(简称IndexedDB,以前称WebSimpleDB)是W3C推荐的一项网页浏览器标准[1],是为提供一个具有索引JSON对象集合的事务性本地数据库操作接口。W3C于2015年1月8日发布了IndexedDB接口的最终建议。[2]

浏览器支持[编辑]

Firefox(自版本4[3])、Google Chrome(自版本11[4])和Internet Explorer 10的消费者预览及Metro式应用中IndexedDB已经得到初步支持。[5]苹果公司已在2014年6月2日的WWDC 2014的主旨发言中宣布将在iOS 8和OS X上的Safari 8中支持。[6]

使用案例[编辑]

IndexedDB可以用于浏览器内实现的功能,例如书签,以及Web应用程序,如电子邮件。索引数据库API的一个开源参考实现已经出现(用于测试和实验目的)[7]

特性[编辑]

IndexedDB是一个嵌入在浏览器中的事务数据库。该数据库的管理围绕JSON对象集合的概念,这类似NoSQL数据库MongoDBCouchDB。其中每个对象使用插入时生成的键标识。而索引系统优化对存储对象的访问。[8]

参考文献[编辑]

  1. ^ Indexed Database API. W3.org. [2011-02-18]. (原始内容存档于2011-02-02). 
  2. ^ IndexedDB API. W3.org. [2015-12-04]. (原始内容存档于2011-02-02). 
  3. ^ IndexedDB - MDC Doc Center. Developer.mozilla.org. [2011-02-18]. (原始内容存档于2012-05-26). 
  4. ^ Web Platform Status. The Chromium Projects. 2012-05-21 [2012-05-24]. (原始内容存档于2013-07-17). 
  5. ^ IndexedDB, MSDN, 2012-03-14 [2012-05-24], (原始内容存档于2015-03-26) 
  6. ^ Apple - OS X Yosemite - Apps. Apple. [2014-06-02]. (原始内容存档于2014-06-03). 
  7. ^ indexeddb - Project Hosting on Google Code. Code.google.com. [2011-02-18]. (原始内容存档于2011-08-20). 
  8. ^ Nelson, Anne Fulcher, and Nelson, William Harris Morehead. (2001).

外部链接[编辑]

参见[编辑]