Book Image

Learning SQLite for iOS

By : Gene Da Rocha
Book Image

Learning SQLite for iOS

By: Gene Da Rocha

Overview of this book

The ability to use SQLite with iOS provides a great opportunity to build amazing apps. Apple's iOS SDK provides native support for SQLite databases. This combination offers the potential to create powerful, data-persistent applications. This book starts with the architecture of SQLite database and introduces you to concepts in SQL . You will find yourself equipped to design your own database system, administer it, and maintain it. Further, you will learn how to operate your SQLite databases smoothly using SQL commands. You will be able to extend the functionality of SQLite by using its vast arsenal of C API calls to build some interesting, exciting, new, and intelligent data-driven applications. Understand how Xcode, HTML5, and Phonegap can be used to build a cross-platform modern app which can benefit from all these technologies - all through creating a complete, customizable application skeleton that you can build on for your own apps.
Table of Contents (15 chapters)
Learning SQLite for iOS
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Query plan


When a query is to be executed, a query plan is used by the database to forge a data path where the best and the most efficient types of routes are created. If there are table join, indexes, and a number of rows in the tables, a variety of mathematical calculations using different algorithms are prepared. Having an execution plan is useful when there are issues with SQL, and to debug multiple table joins and index setups, and follow a path to solve a data or programming issue.

Apart from the straightforward SQL statements in a plain format, there will be those statements that will be used within iOS and wrapped in one of the languages such as Objective-C or Swift.

When the query execution plan is executed, the data, the information, is geared for debugging only and should be used as guidance. Every SQLite release will have different updates that affect the product. The whole idea of a plan is to outline the strategy path an SQL command takes.

A keyword called EXPLAIN, or a phrase...