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

FMDB SQLite wrapper


In addition to using standard SQL, the FMDB SQLite wrapper, written in Objective-C, can be of assistance to those who prefer an alternative and easier way to work with SQLite.

For more information on the FMDB specification and code examples, refer to https://github.com/ccgus/fmdb.

There are three main classes in FMDB:

  • FMDatabase: This is the single SQLite database that executes your SQL statements

  • FMResultSet: This will hold and display the output and results from the FMDatabase

  • FMDatabaseQueue: This will enable you to update and use many threads within this class if you want to perform queries and updates on multiple threads