I'm deploying 2 sqlite files in the Contents folder of my app. How do I reference the file to open a TConnection?
I tried:
Contents\myfile.sqlite
\Contents\myfile.sqlite
/Contents/myfile.sqlite
Contents/myfile.sqlite
none works.
Connect to Sqlite database in Mac OSX
Re: Connect to Sqlite database in Mac OSX
To solve the issue, in Deployment Manager specify the Contents\MacOS\ as a remote path for a SQLite file and reference the file simply with its name without the "\Contents" prefix. For example:
Code: Select all
UniConnection1.Database := 'myfile.sqlite';