Start reading The Definitive Guide to SQLite on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here or start reading now with a free Kindle Reading App.

Deliver to your Kindle or other device


Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.
The Definitive Guide to SQLite (Expert's Voice in Open Source)

The Definitive Guide to SQLite (Expert's Voice in Open Source) [Kindle Edition]

Grant Allen , Mike Owens

Print List Price: £43.44
Kindle Price: £26.41 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £17.03 (39%)
* Unlike print books, digital books are subject to VAT.


Amazon Price New from Used from
Kindle Edition £26.41  
Paperback £43.44  
Kindle Daily Deal
Kindle Daily Deal: At least 60% off
Each day we unveil a new book deal at a specially discounted price--for that day only. Learn more about the Kindle Daily Deal or sign up for the Kindle Daily Deal Newsletter to receive free e-mail notifications about each day's deal.

Product Description

Product Description

Outside of the world of enterprise computing, there is one database that enables a huge range of software and hardware to flex relational database capabilities, without the baggage and cost of traditional database management systems. That database is SQLite—an embeddable database with an amazingly small footprint, yet able to handle databases of enormous size. SQLite comes equipped with an array of powerful features available through a host of programming and development environments. It is supported by languages such as C, Java, Perl, PHP, Python, Ruby, TCL, and more.

The Definitive Guide to SQLite, Second Edition is devoted to complete coverage of the latest version of this powerful database. It offers a thorough overview of SQLite’s capabilities and APIs. The book also uses SQLite as the basis for helping newcomers make their first foray into database development. In only a short time you can be writing programs as diverse as a server-side browser plug-in or the next great iPhone or Android application!

  • Learn about SQLite extensions for C, Java, Perl, PHP, Python, Ruby, and Tcl.
  • Get solid coverage of SQLite internals.
  • Explore developing iOS (iPhone) and Android applications with SQLite.
SQLite is the solution chosen for thousands of products around the world, from mobile phones and GPS devices to set-top boxes and web browsers. You almost certainly use SQLite every day without even realizing it!

What you’ll learn

  • Deploy SQLite as the database engine for iPhone and Android applications.
  • Interact with SQLite from Java, C++, PHP, and other key languages.
  • Create robust database designs, taking advantage of support for primary and foreign key constraints.
  • Embed zero-maintenance databases directly within applications that you write.
  • Improve performance through a good understanding of SQLite internals.
  • Exploit features such as the shared cache, the SQL Logic Test Suite, the Unlock and Notify APIs, and query plan improvements.

Who this book is for

The Definitive Guide to SQLite is for developers needing a zero-maintenance database solution to deploy as an embedded component within their product. The book is especially useful for mobile developers delivering applications to run on the iPhone, or on the Android platform. PHP developers will also find the book useful if they are using the default database delivered as part of a PHP installation.

About the Author

Grant Allen has worked in the IT field for over 20 years, as a CTO, enterprise architect, and database administrator. Grant's roles have covered private enterprise, academia and the government sector around the world, specialising in global-scale systems design, development, and performance. He is a frequent speaker at industry and academic conferences, on topics ranging from data mining to compliance, and technologies such as databases (DB2, Oracle, SQL Server, MySQL), content management, collaboration, disruptive innovation, and mobile ecosystems like Android. His first Android application was a task list to remind him to finish all his other unfinished Android projects. Grant works for Google, and in his spare time is completing a Ph.D on building innovative high-technology environments. Grant is the author of Beginning DB2, and lead author of Oracle SQL Recipes and The Definitive Guide to SQLite.

Product details

  • Format: Kindle Edition
  • File Size: 2458 KB
  • Print Length: 368 pages
  • Publisher: Apress; 2 edition (5 Nov 2010)
  • Sold by: Amazon Media EU S.à r.l.
  • Language: English
  • ASIN: B004VHAZH6
  • Text-to-Speech: Enabled
  • X-Ray:
  • Amazon Bestsellers Rank: #377,565 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

More About the Authors

Discover books, learn about writers, and more.

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

There are no customer reviews yet on
5 star
4 star
3 star
2 star
1 star
Most Helpful Customer Reviews on (beta) 3.1 out of 5 stars  9 reviews
10 of 10 people found the following review helpful
5.0 out of 5 stars Outstanding SQLite Title 14 Dec 2010
By Stephen Christensen - Published on
The Definitive Guide to SQLite Ed2 is a very well-rounded title that will satisfy database users at nearly any experience level. The basic information concerning SQL and how to interact with the Command Line Program (CLP) will equip the interested college student or new hobbyist while information on extending the C API and using your favorite scripting language to embed SQLite in your own applications is detailed and comprehensive enough to suit seasoned developers. The book offers a balanced mix of theory, explanations, and example code that are concise and relevant to the topic at hand. The concepts are also organized in a logical fashion from an introduction to data basics to implementing real-world scenarios.

The first two chapters provide a formal introduction to SQLite concerning its purpose, philosophy, and high level architecture. It then walks you through the options for downloading SQLite from the SQLite website and beginning to use the CLP.

Chapters 3-4 delve into using SQL with SQLite, and the content is actually comparable to the SQL reference I have on my desk shelf. Seasoned developers should still sift through the information as some of it is SQLite specific.

Chapter 5 provides the design specifics you will need to consider when developing your applications. Data flow models add to the value here as the author discusses connections, queries, aggregates, collations, transactions, locking, caching

Chapters 6-8 are where the rubber meets the road! There is an ample amount of code and explanations here that walk you through interacting with the Core C API and Extension C API. Then, examples are provided on the language extensions for Perl, Python, Ruby, Java (including JDBC), Tcl, and PHP. So far, I have walked through the Python examples and most of the Java examples without a hitch. The book mentions the SQLite ODBC driver a couple of times but I wish they would've touched on it as well.

And if that isn't enough for you, the author devoted new chapters solely to mobile development for iOS and Android. Information and screenshots on working with the development kits are provided as well as code examples.

I also appreciate that the book said everything that needed to be said in 347 pages (yes, Ed2 is shorter than the 440 page Ed 1) instead of 600 - 1000. I've sifted through too many mammoth technical titles in the past few years that could have easily portrayed the same content in half the space. Thank you!

The index issues readers had with Ed1 have been addresses in Ed2, so readers are now able to quickly find the desired information.

Overall, I am very satisfied with this title as it has enhanced my understanding of SQL and database development in addition to proficiency with SQLite.
4 of 4 people found the following review helpful
5.0 out of 5 stars Great guide to SQLite 13 Dec 2010
By Toribio Luna Luna - Published on
I bought the first edition of this book when learning to develop mobile apps for the HP WebOs Platform since the webOs SDK documentation has little information on the topic I decided I wanted to learn more, so I got this Book.

Now in its second edition the book is even better for mobile development because it now includes two chapters dedicated to mobile developent, one chapter for iOS development and one chapter for Android Development with SQLite.

Just as in the first edition, the book has very good and detailed explanations about the use of SQL in SQLite, so if you have not been using SQL for a while or you are learning SQL this will be a great start.

After that it covers how to use SQLite in C , IOs and Android, and touches briefly language extensions in perl python ruby, Java, JDBC, TCL,
I do really recommend to go troought those chapters, even if you are goinig to use SQLite in just one environment, because it will give you a more complete view on how to use SQLite.

When trying to build the app for iOS it is important to notice that is has been built using the iOS SDK 3.1.3, so you got to be careful if you have installed the latest SDK version, at least because of my limited knowledge on iOS development, I couldn't build the app, but I guess that for somebody with proper knowledge of the SDK will have no problems at all

About the android development chapter the detail is very good, I learned a few interesting things from there, and I am looking forward to build the app, one little problem here, the downloaded source code in the Apress site, has a copy of the iOS app in the Android chapter, but I hope this is going to be corrected very soon, so I can build the app using the android SDK.

So for me is a great book in the topic, that you would want to read and keep at hand as a reference when developing mobile applications.
1 of 1 people found the following review helpful
5.0 out of 5 stars Definitely The Book You Should Buy To Learn SQLite! 7 Dec 2010
By David M. Cravey - Published on
I love the enthusiasm that the authors have about SQLite (it's contagious)!

The Definitive Guide To SQLite provides a fantastic level of detail (just enough to keep you from missing important details, but not too much). This is really great because I can strongly recommend this book to others knowing that they will be given excellent coverage of important details.

SQLite is a great library that provides a robust and very flexible database engine that can be directly embedded into your applications. SQLite, being an embedded database, has been designed differently than the larger network connected databases. The Definitive Guide To SQLite did an excellent job explaining the design goals that the SQLite development team works under and how these design goals affects the APIs.

The main thing I found missing in The Definitive Guide To SQLite was coverage of a C#/.NET wrapper. The book covers C (the language SQLite is written in) as well as Perl, Python, Ruby, Java, Tcl, PHP, the iOS (for iPhones), and Android. Note that after a bit of research I found System.Data.SQLite which appears to be a very popular SQLite wrapper for the .NET framework with good community support.

SQLite is a great database engine for many projects, and The Definitive Guide To SQLite is a great book for learning and understanding SQLite! I recommend this book to programmers with an intermediate to advanced skill set who want/need to integrate a database in their applications without installing a full database server!
1.0 out of 5 stars Missing Example Code 10 Jun 2014
By Carl C Bringardner - Published on
Format:Paperback|Verified Purchase
The book has a link to a site where you can download the example and it no longer makes that code available.
5.0 out of 5 stars Very didactic 14 Feb 2014
By Fernando Velasquez E - Published on
Format:Kindle Edition|Verified Purchase
Easy to read and great content.
Just the book I was seeking for: I recommend It without dude.
Didactic, concise and the chapter about SQL is very good.
Were these reviews helpful?   Let us know

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category