Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning SQLite for iOS

You're reading from  Learning SQLite for iOS

Product type Book
Published in Mar 2016
Publisher
ISBN-13 9781785288975
Pages 154 pages
Edition 1st Edition
Languages
Author (1):
Gene Da Rocha Gene Da Rocha
Profile icon Gene Da Rocha
Toc

Table of Contents (15) Chapters close

Learning SQLite for iOS
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
1. Introduction to SQL and SQLite 2. Database Design Concepts 3. Administering the Database 4. Essentials of SQL 5. Exposing the C API 6. Using Swift with iOS and SQLite 7. iOS Development with PhoneGap and HTML5 8. More Features and Advances in SQLite Index

SQLite C components' functionality


SQLite has been written using C language, and its creator has enabled it to be exposed and has enhanced its functionality by having an API, the C API. In general, SQLite has many different API calls, for example, about 200 APIs for different functionalities. As a programmer, you may find it hard to accept, but the APIs are designed for specific tasks, for example, the sqlite3_reset() function clears the object connected with the SQLite prepared statement and resets it to its original state and value.

To start with, the two core objects are the database connection and the prepared statement objects. The order and the types of functions give you an idea of how to write an SQL transaction to connect to a database, create a table and an index, and populate it with an insert statement. These functions form the main elements of the SQL-C interface functions, allowing data to be connected and passed from code to SQLite.

sqlite3_open()

The sqlite3_open(const char...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime}