
157
Chapter 7
Storing Data
In this chapter, we cover:
◾ Using Storage API
◾ Methods of the Storage API
◾ Creating a database
◾ Creating tables and inserting rows
◾ Listing rows
◾ Deleting rows
◾ Editing rows
Using Storage API
Almost all mobile applications require information to be stored so that it can be accessed and
reused in the future. PhoneGap provides the JavaScript library to implement storage capability in
mobile devices. More precisely, the Storage API implements a simple database that can be used in
mobile applications for maintaining information. We can use Structured Query Language (SQL)
statements to add, edit, delete, and update in ...