IndexedDB: Difference between revisions

Content deleted Content added
Monkbot (talk | contribs)
m Task 18 (cosmetic): eval 11 templates: hyphenate params (9×);
infobox, citations
Line 1:
{{Infobox technology standard
The '''Indexed Database API''' (commonly referred to as '''IndexedDB''') is a [[JavaScript]] [[application programming interface]] (API) provided by [[web browser]]s for managing a [[NoSQL]] [[database]] of [[JSON]] objects. It is a standard maintained by the [[World Wide Web Consortium]] (W3C).<ref>{{cite web|url = http://www.w3.org/TR/IndexedDB/|title = IndexedDB API|publisher = W3.org|access-date = 2015-12-04}}</ref>
| title = IndexedDB
| long_name = Indexed Database API
| native_name = Indexed Database API
| native_name_lang = en
| image =
| caption =
| status = W3C First Public Working Draft
| year_started = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| first_published = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| version = 3.0
| version_date = 11 March 2021<ref name="standard">{{Cite web|url=https://www.w3.org/TR/IndexedDB/|title=Indexed Database API 3.0|editor-first=Ali|editor-last=Alabbas|editor-first2=Joshua|editor-last2=Bell|author=Web Applications Working Group|publisher=Web Applications Working Group|website=W3C|version=W3C First Public Working Draft|date=2021-03-11|access-date=2021-05-15}}</ref>
| preview = Editor's Draft
| preview_date = 11 March 2021<ref name="standard-draft">{{Cite web|url=https://w3c.github.io/IndexedDB/|title=Indexed Database API 3.0|editor-first=Ali|editor-last=Alabbas|editor-first2=Joshua|editor-last2=Bell|author=Web Applications Working Group|publisher=Web Applications Working Group|website=W3C|version=Editor’s Draft|date=2021-03-11|access-date=2021-05-15}}</ref>
| organization = {{Plainlist|
* {{abbr|[[World Wide Web Consortium|W3C]]|World Wide Web Consortium}}
* [[Google]]
* [[Microsoft]]
}}
| committee = Web Applications Working Group
| editors = {{Plainlist|
* Ali Alabbas<ref name="standard" />
* Joshua Bell<ref name="standard" />
}}
| authors =
| base_standards = [[JSON]]
| related_standards =
| abbreviation = IndexedDB
| ___domain = [[NoSQL]] [[database]]s
| license =
| website = {{URL|https://www.w3.org/TR/IndexedDB/}}
}}
 
The '''Indexed Database API''' (commonly referred to as '''IndexedDB''') is a [[JavaScript]] [[application programming interface]] (API) provided by [[web browser]]s for managing a [[NoSQL]] [[database]] of [[JSON]] objects. It is a standard maintained by the [[World Wide Web Consortium]] (W3C).<ref>{{cite web|url = http://www.w3.org/TR/IndexedDB/|title = IndexedDB API|publisher = W3.org|access-date name="standard" 2015-12-04}}</ref>
 
As an alternative to the [[Web storage]] standard, IndexedDB can provide more storage capacity. Web storage has [[Web_storage#Storage_size|fixed limits]] per [[website]], but IndexedDB limits are "usually quite large, if they exist at all".<ref>{{cite web |title=Working with IndexedDB |url=https://developers.google.com/web/ilt/pwa/working-with-indexeddb |publisher=Google |access-date=19 January 2019}}</ref>
Line 6 ⟶ 39:
 
==History==
Support for IndexedDB was added to [[Firefox]] version 4,<ref>{{cite web|url=https://developer.mozilla.org/en/IndexedDB |title=IndexedDB - MDC Doc Center |publisher=Developer.mozilla.org |access-date=2011-02-18}}</ref> [[Google Chrome]] version 11,<ref>{{cite web|url=https://wwwchromestatus.chromium.orgcom/developersfeature/web-platform-status#TOC-Indexed-Database-API- 6507459568992256|title=WebIndexedDB - Chrome Platform Status|website=IndexedDB - Chrome Platform Status|publisher=The Chromium Projects |date=2012-05-21 |access-date=20122021-05-2415}}</ref> and [[Internet Explorer]] version 10.<ref>{{citation |url=http://msdn.microsoft.com/en-us/library/ie/hh673548(v=vs.85).aspx |title=IndexedDB |publisher=MSDN |date=2012-03-14 |access-date=2012-05-24}}</ref> [[Safari (web browser)|Safari]] added support in version 8.<ref>{{cite web|url=https://developer.apple.com/library/content/releasenotes/MacOSX/WhatsNewInOSX/Articles/MacOSX10_10.html#//apple_ref/doc/uid/TP40014484-SW1|title=What'sOS NewX inYosemite macOSv10.10 {{section-sign}} App Features|publisher=Apple|website=Apple Developers|access-date=2017-07-09|access-date=2021-05-15}}</ref>
 
[[Web SQL Database]] was a prior API developed by [[Apple Inc.|Apple]].<ref>{{cite web|last=Shankland |first=Stephen |url=httphttps://newswww.cnet.com/8301news/consensus-30685_3emerges-20000376for-264.html key-web-app-standard/|title=Consensus emerges for key Web app standard &#124; Deep Tech - CNET News |publisher=News.cnet.com |date=2010-03-12 |access-date=2011-02-18}}</ref> But Firefox refused to add support for it and argued against it becoming a standard because it would codify the quirks of [[SQLite]].<ref>{{cite web|url=httphttps://weblogsrobert.mozillazineocallahan.org/roc2010/archives06/not-implementing-features-is-hard_03.html|archive-url=https://web.archive.org/web/20201109032423/http://robert.ocallahan.org/2010/06/not_implementinnot-implementing-features-is-hard_03.html |title=Well, I'm Back: Not Implementing Features Is Hard |author-first=Robert|author-last=O'Callahan|publisher=Weblogs.mozillazine.org |date=2010-06-04|access-date=2011-02-18|archive-date=2021-01-26}}</ref><ref>{{Cite web|url=https://hacks.mozilla.org/2010/06/beyond-html5-database-apis-and-the-road-to-indexeddb|title=Beyond HTML5: Database APIs and the Road to IndexedDB – Mozilla Hacks - the Web developer blog|website=Mozilla Hacks – the Web developer blog}}</ref> It was thus [[deprecation|deprecated]] in favor of IndexedDB.<ref>{{Cite web|url=https://softwareengineering.stackexchange.com/questions/220254/why-is-web-sql-database-deprecated|title=html5 - Why is Web SQL database deprecated?|website=Software Engineering Stack Exchange}}</ref>
 
==References==