Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodCode SnippetDelphiFiremonkeyIOSOSXWindows

Simplify Interbase Database Deployment For Android And IOS With Delphi XE5 Firemonkey

interbaseEmbarcadero has a blog post up where they show how to create Interbase databases at runtime. This greatly simplifies deploying a database to mobile and also allows you to easily switch between using Interbase or SQLite. Personally I would always choose SQLite over Interbase because if you ever need to switch your app to use a different development environment SQLite is more widely supported (Adobe AIR for example also supports SQLite). In any event the code is easy enough to understand and the important lines for creating the Interbase database at runtime are:
DBPath := TPath.GetDocumentsPath+PathDelim+'interbase'+PathDelim+'MyDB.ib';
FDConnection1.Params.Values['Database'] := DBPath;
FDConnection1.Params.Values['CreateDatabase'] := BoolToStr(not FileExists(DBPath),True);

Head over and check out the full runtime Interbase database tutorial.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts
DelphiDemoFiremonkeyIOSLinuxOSXWindows

Bring OpenAI Agents, Vision, Audio, And Realtime AI To Firemonkey

DelphiIDEWindows

Add AI Pair Programming, Refactoring, And Multi-LLM Workflows To RAD Studio

DelphiDemoFiremonkeyLibraryWindows

Bring OpenAI, Local LLMs, And AI Assistants To FMX Apps

DelphiFiremonkeyLibrary

DelphiGemini Brings Native Google Gemini AI Integration To Delphi

Sign up for our Newsletter and
stay informed
[mailpoet_form id="1"]

Leave a Reply