跳转到内容

Indexed Database API

本页使用了标题或全文手工转换
维基百科,自由的百科全书
IndexedDB
Indexed Database API
状态首份發佈的工作草案(First Public Working Draft)
最新版本3.0
2025年5月5日[1]
预览版本Editor's Draft
2025年5月5日[2]
组织
委员会Web Applications Working Group
编辑
基础标准
有关标准
领域NoSQL資料庫
缩写IndexedDB
网站www.w3.org/TR/IndexedDB/

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

浏览器支持

[编辑]

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

使用案例

[编辑]

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

特性

[编辑]

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

参见

[编辑]

参考文献

[编辑]
  1. ^ 1.0 1.1 Web Applications Working Group. Bell, Joshua , 编. Indexed Database API 3.0. W3C. W3C First Public Working Draft. Web Applications Working Group. 2025-05-05 [2025-05-12]. 
  2. ^ Web Applications Working Group. Bell, Joshua , 编. Indexed Database API 3.0. W3C. Editor’s Draft. Web Applications Working Group. 2025-05-05 [2025-05-12]. 
  3. ^ Web Applications Working Group. Alabbas, Ali; Bell, Joshua , 编. Indexed Database API 2.0. W3C. W3C Recommendation. Web Applications Working Group. 2018-01-30 [2021-05-16]. 
  4. ^ Indexed Database API. 2015-01-08 [2022-04-21]. 
  5. ^ Indexed Database API. W3.org. [2011-02-18]. (原始内容存档于2011-02-02). 
  6. ^ IndexedDB API. W3.org. [2015-12-04]. (原始内容存档于2011-02-02). 
  7. ^ IndexedDB - MDC Doc Center. Developer.mozilla.org. [2011-02-18]. (原始内容存档于2012-05-26). 
  8. ^ Web Platform Status. The Chromium Projects. 2012-05-21 [2012-05-24]. (原始内容存档于2013-07-17). 
  9. ^ IndexedDB, MSDN, 2012-03-14 [2012-05-24], (原始内容存档于2015-03-26) 
  10. ^ Apple - OS X Yosemite - Apps. Apple. [2014-06-02]. (原始内容存档于2014-06-03). 
  11. ^ indexeddb - Project Hosting on Google Code. Code.google.com. [2011-02-18]. (原始内容存档于2011-08-20). 
  12. ^ Nelson, Anne Fulcher, and Nelson, William Harris Morehead. (2001).

外部链接

[编辑]