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
DelphiDemoFiremonkeyLinuxOSXWindows

Build Classic Desktop Operating System Themes Apps With Styles For FireMonkey

DelphiFiremonkeyIDEWindows

Easily Let AI Agents Query And Manage Your Databases Via FireDAC MCP

DelphiDemoShowcaseWindows

Build A Tiny, Explainable Language Model Entirely In Delphi

ComponentDelphiDemoFiremonkeyLibraryWindows

Run Google's Gemma 4 Vision Models Natively In Delphi

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