Is it safe to use the HTML5 Web SQL Database API?

After reading http://www.w3.org/TR/webdatabase/ and more specifically:

This document was included in the W3C Recommendation, but the specification work has ceased. The specification is at an impasse: all interested developers used the same SQL server (Sqlite), but we need several independent implementations to continue the standardization path.

I am wondering if it is “safe” (i.e. ongoing support) to use the HTML5 database APIs?

+6
source share
2 answers

This is not practical. It stopped and is replaced by the IndexedDB API . In the end, the web SQL database will be deleted from the browsers that currently support it.

You might like the current browser support data for Web SQL Database and IndexedDB . There are more browsers in the Web SQL database that currently support it, but Firefox does not support it and outweighs Safari, Opera and various mobile browsers, and therefore it is only about 28%, and IndexedDB is almost 36% of global support. In addition, I believe that it is generally believed that Microsoft will support IndexedDB in IE10, while the Web SQL database API will no longer go.

Update, 2013-02-04: IE10 supports IndexedDB; Web SQL and IndexedDB support just under 50%. Compliance with the IndexedDB specification is also very good, which has led IE10, Firefox and Chrome to now support it unchanged.

+10
source

Not. In larger, bolder letters is the text,

Caution. This specification is no longer under active maintenance, and the Web Application Working Group does not intend to support it further.

+2
source

Source: https://habr.com/ru/post/896453/


All Articles