How to do it...

When you need a mobile database, you have two choices in Delphi: SQLite (an open source embedded database) and InterBase ToGo.

Since version XE6, RAD Studio has included InterBase ToGo and IBLite editions for embedded application development. You can deploy your mobile applications to iOS or Android devices with an InterBase ToGo license (at a cost) or IBLite license (free).

If your app is a bit more complex and needs encryption, stored procedures, or a number of data types, you definitely have to go for InterBase ToGo. Otherwise, you can use SQLite. IBLite is the same engine as InterBase ToGo, but with limits. The biggest limit is the lack of encryption. However, an app that uses IBLite doesn't require code updates if you ...

Get Delphi Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.