Connect to Sqlite database in Mac OSX

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
miguelenguica
Posts: 18
Joined: Mon 11 Apr 2011 15:28

Connect to Sqlite database in Mac OSX

Post by miguelenguica » Thu 25 Jun 2015 19:51

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.

ZEuS
Devart Team
Posts: 240
Joined: Thu 05 Apr 2012 07:32

Re: Connect to Sqlite database in Mac OSX

Post by ZEuS » Fri 26 Jun 2015 10:20

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';

Post Reply