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

Creating a database

The goal of this recipe will be to create a local database for our data. Inside the new database, we can create tables and execute different operations for inserting, reading, saving, and deleting records. Fortunately, we don't need to learn any new language because it's possible to use regular SQL for the mentioned operations.

Instead of using a file or other different resources for storing our data, we'll work with the database provided by the browser. This has two immediate consequences; one of them is avoiding the use of a remote database in the server side. The other one is the flexibility of using a local database engine embedded inside the browser. Safari Mobile will do the hard job for us; developers only need to take ...

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