custom correlation

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
taoh15
Posts: 3
Joined: Tue 20 Sep 2016 20:12

custom correlation

Post by taoh15 » Wed 31 May 2017 09:02

I have long been a user of Unidac for Delphi and I've been delighted with it, however I have now come across a problem.
I use a program called RootsMagic for my family history and it uses sqlite with a custom correlation RMNOCASE to store it's data. I use Sqlite Expert Professional to test queries with, but for it to work I have to add unifizz.dll as an extension to the 32bit Sqlite Expert.
Can I use this extension with Unidac Sqlite and if so how, please?

Cheers
Taoh

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: custom correlation

Post by AlexP » Wed 31 May 2017 11:10

Hello,

Yes, you can use SQLite extension in UniDAC. For this, you need to enable the EnableLoadExtension option:

Code: Select all

UniConnection.SpecificOptions.Values['EnableLoadExtension'] := 'True'
and use the following SQL query to enable the extensions:

Code: Select all

UniConnection.ExecSQL('SELECT load_extension(''C:\ext.dll'', ''sqlite3_ext_init'');');

Post Reply