Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between database storage API and DOM storage API

From the WebView documentation, it says:

  1. setDatabaseEnabled sets whether the database storage API is enabled.
  2. setDomStorageEnabled sets whether the DOM storage API is enabled.

So I want to ask what is database storage API and what is DOM storage API? What are their differences?

like image 776
Richard Hu Avatar asked May 30 '26 14:05

Richard Hu


1 Answers

setDatabaseEnabled refers to the Web SQL Database API which allows webpages to store data in a relational database. However, this API is actually deprecated. See https://en.wikipedia.org/wiki/Web_SQL_Database

setDomStorageEnabled refers to the HTML5 Web Storage API, which allows web pages to store key-value pairs of data, similar to cookies, but with larger storage capacity. See https://en.wikipedia.org/wiki/Web_storage

like image 147
josias Avatar answered Jun 02 '26 04:06

josias



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!