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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.