O'Reilly logo

iPhone JavaScript Cookbook by Arturo Fernandez Montoro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Working with Data: Storage and SQL

In this chapter, we will cover:

  • Creating a database
  • Creating a table
  • Inserting records
  • Searching and selecting records
  • Deleting records
  • Saving and reading preferences
  • Storing data in session

Introduction

Usually, storage is an important issue for modern applications. Many of them require saving and reading data in a persistent storage. It means that the data will remain after closing the application or turning off the device. Traditional web applications use a remote database for carrying out these actions. Despite the fact that we can follow this approach in our web applications for the iPhone, we have a clear alternative: the use of local storage capabilities of Safari Mobile. Actually, this functionality ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required