Page 1 of 1

Connect to Sqlite database in Mac OSX

Posted: Thu 25 Jun 2015 19:51
by miguelenguica
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.

Re: Connect to Sqlite database in Mac OSX

Posted: Fri 26 Jun 2015 10:20
by ZEuS
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';