Today I am going to discuss about the use of WebSql in Phonegap.
In Phonegap, if you want to store data locally on device, Web SQL can be used. Most of the sql queries can be performed in Web sql using method openDatabase that takes 4 arguments. first is database name, version number, text description and size of database. It also has method transaction and executeSql, transaction method is used for performing queries action and with the help of this you can call executeSql for insert, update and delete queries.
Permissions that are required for WebSql:
Android: Add plugin Storage in app/res/xml/config.xml