Web SQL Database

Source: Wikipedia, the free encyclopedia.

Web SQL Database is a deprecated

API specification for storing data in databases that can be queried using SQL variant.[1][2] The technology was only ever implemented in Blink-based browsers like Google Chrome and the new Microsoft Edge, and WebKit-based browsers like Safari. As of February 2024, WebSQL is being phased out in favor of WebStorage and IndexedDB
and OPFS, but still available in some contexts under restrictive conditions.

Support

The API is supported by

Android Browser, albeit support is slowly being phased out.[6] Web SQL was deprecated and removed for third-party contexts in Chromium 97. Web SQL access in insecure contexts is deprecated as of Chrome/Chromium 105 at which time a warning message will be shown in the Chrome DevTools Issue panel. It will be removed from Chrome 123.[7]

Timeline

In January 2010, Google announced availability of WebSQL Database API in Google Chrome.[8]

Mozilla Corporation developers publicly opposed the technology and at the same were the main proponents behind an 'alternative storage' standard, IndexedDB.[9][10] Mozilla argued that ratification of WebSQL as a standard would codify the quirks of SQLite implementation.[11][12]

In November 2010, the

W3C Web Applications Working Group ceased working on the specification, citing a lack of independent implementations (i.e. using database system other than SQLite as the backend) as the reason the specification could not move forward to become a W3C Recommendation.[1]

In September 2019, Apple released Safari 13 which removed WebSQL entirely.

In November 2021, Chrome 97 removed WebSQL support in third-party contexts.[13]

In February 2023, Chrome 110 removed WebSQL support in insecure contexts but allowed exceptions set with an enterprise policy.

In October 2023, Chrome 119 was shipped with WebSQL disabled in all contexts by default, with an ability to re-enable it until Chrome 123 via a deprecation trial in some contexts.[14]

See also

References

  1. ^ a b "Web SQL Database (W3C Working Group Note)". W3.org. Retrieved 25 October 2011.
  2. ^ Nelson, Anne Fulcher, and Nelson, William Harris Morehead. (2001). Building Electronic Commerce with Web Database Constructions. Boston, MA: Addison Wesley.
  3. ^ Fette, Ian (25 January 2010). "Chromium Blog: More Resources for Developers". Blog.chromium.org. Retrieved 7 September 2013.
  4. ^ "Can I use Web SQL Database". Caniuse.com. Retrieved 7 September 2013.
  5. ^ "View Web SQL Data". learn.microsoft.com. Retrieved 17 September 2022.
  6. ^ "Deprecating and removing Web SQL". Chrome Developers. 31 August 2022.
  7. ^ "What's New in DevTools (Chrome 119)". Chrome for Developers. 10 October 2023. Retrieved 11 October 2023.
  8. ^ Fette, Ian. "More Resources for Developers". Chromium Blog. Retrieved 30 September 2023.
  9. ^ "Why is WebSQL database deprecated?". Programmers Exchange.
  10. ^ "Beyond HTML5: Database APIs and the Road to IndexedDB". Mozilla Corporation.
  11. ^ O'Callahan, Robert (4 June 2010). "Well, I'm Back: Not Implementing Features Is Hard". Weblogs.mozillazine.org. Archived from the original on 9 November 2020. Retrieved 18 February 2011.
  12. ^ Ranganathan, Arun (1 June 2010). "Beyond HTML5: Database APIs and the Road to IndexedDB – Mozilla Hacks - the Web developer blog". Mozilla Hacks – the Web developer blog. Retrieved 21 May 2021.
  13. ^ "Chrome Platform Status". chromestatus.com. Retrieved 30 September 2023.
  14. ^ Jara, Adriana (1 November 2023). "New in Chrome 119". Chrome for Developers. Retrieved 10 November 2023. WebSQL is fully removed as of Chrome 119. A reverse origin trial allows developers to continue to use WebSQL until Chrome 123.

External links