Indexed Database API
外观

![]() | 此条目翻译自其他语言维基百科,需要相关领域的编者协助校对翻译。 |
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 |
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数据库MongoDB与CouchDB。其中每个对象使用插入时生成的键标识。而索引系统优化对存储对象的访问。[12]
参见
[编辑]- HTML5
- Web SQL数据库(竞品,已弃用的标准)
- Web存储(较简单、类似但没有索引的标准)
参考文献
[编辑]- ^ 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].
- ^ 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].
- ^ 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].
- ^ Indexed Database API. 2015-01-08 [2022-04-21].
- ^ Indexed Database API. W3.org. [2011-02-18]. (原始内容存档于2011-02-02).
- ^ IndexedDB API. W3.org. [2015-12-04]. (原始内容存档于2011-02-02).
- ^ IndexedDB - MDC Doc Center. Developer.mozilla.org. [2011-02-18]. (原始内容存档于2012-05-26).
- ^ Web Platform Status. The Chromium Projects. 2012-05-21 [2012-05-24]. (原始内容存档于2013-07-17).
- ^ IndexedDB, MSDN, 2012-03-14 [2012-05-24], (原始内容存档于2015-03-26)
- ^ Apple - OS X Yosemite - Apps. Apple. [2014-06-02]. (原始内容存档于2014-06-03).
- ^ indexeddb - Project Hosting on Google Code. Code.google.com. [2011-02-18]. (原始内容存档于2011-08-20).
- ^ Nelson, Anne Fulcher, and Nelson, William Harris Morehead. (2001).