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
AndroidComponentDelphiDemoFiremonkeyIOSLinuxOSXShowcaseWindows

Experience ChatGPT As A Native Cross-Platform Firemonkey Application

DelphiLibraryWindows

Run Large Language Models Entirely On The GPU With Delphi And Vulkan

Code SnippetDelphiDemoLibraryWindows

Add Real-Time AI Voice Conversations To Windows Applications

ComponentDelphiDemoLibraryWindows

Give AI Models Eyes, Ears, And Real-World Capabilities

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

Leave a Reply