Indexed Database API

Indexed Database API (Indexed DB, インデックス データベース API)とは、W3Cにより仕様策定が行われている[1]、値とオブ�…

Indexed Database API

Indexed Database API (Indexed DB, インデックス データベース API)とは、W3Cにより仕様策定が行われている[1]、値とオブジェクトをローカルデータベースに保持するウェブブラウザの標準インターフェース。Indexed DB は元々2009年オラクルが提案した[2]

同じくクライアントサイドに保存する技術として ウェブストレージがあるが、ウェブストレージは単純なキー・バリュー型であるのに対して、Indexed DB ではインデックスをはったり、トランザクション処理もできる。

Indexed DB はブックマークなどウェブブラウザが機能を実装するために使うこともできるし、Eメールクライアントなどウェブアプリケーションにも使える。

実装

Indexed DB は Internet Explorer 10、Mozilla Firefox 4[3]Google Chrome 11 で部分的に実装されている。Opera は、ChromiumベースになったOpera 15の安定版が2013年7月にリリースされた結果、Indexed DB が実装された[4]Appleは2014年6月2日、iOS 8.0(同年9月17日リリース) とOS X 10.10 Yosemite(同年10月17日リリース) の標準ブラウザであるSafari 8.0にIndexed DB が実装されることを発表した[5]。2015年7月29日にリリースされたWindows 10の標準ブラウザであるMicrosoft Edgeには、Internet Explorer 10のIndexed DB 機能を改善したものが実装された[6]

また、オープンソースの参照実装がテストや実験のために存在する[7]

Safari 3.1、Google Chrome 4、Opera 10.50[8]Web SQL Database という SQLite をベースにした別の類似のクライアントサイドのデータベースも実装している[9]。2010年11月18日、W3C は Web SQL Database は廃止仕様とした[10]。Firefox の開発者は Firefox で Web SQL Database を実装していないのは意図的であり、問題のある仕様(仕様が SQLite に基づいていて中立性に欠ける)であるため、他の仕様(つまり Indexed DB)が必要であると公言している[11]

脚注

  1. ^ Indexed Database API”. W3.org. 2011年2月18日閲覧。
  2. ^ WebSimpleDB API”. W3.org. 2011年2月18日閲覧。
  3. ^ IndexedDB - MDC Doc Center”. Developer.mozilla.org. 2011年2月18日閲覧。
  4. ^ An Introduction to IndexedDB”. オペラ・ソフトウェア (2014年5月8日). 2015年9月3日閲覧。
  5. ^ Apple - OS X Yosemite - Apps”. Apple. 2014年6月2日閲覧。
  6. ^ IndexedDB”. マイクロソフト. 2015年9月3日閲覧。
  7. ^ indexeddb - Project Hosting on Google Code”. Code.google.com. 2011年2月18日閲覧。
  8. ^ Shankland, Stephen (2010年3月12日). “Consensus emerges for key Web app standard | Deep Tech - CNET News”. News.cnet.com. 2011年2月18日閲覧。
  9. ^ Web SQL Database”. Dev.w3.org (2010年11月18日). 2011年2月18日閲覧。
  10. ^ W3C Working Group Note 18 November 2010
  11. ^ Well, I'm Back: Not Implementing Features Is Hard”. Weblogs.mozillazine.org. 2011年2月18日閲覧。

関連項目

外部リンク

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.