Devart 7.1 Sqlite value returns

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jota
Posts: 34
Joined: Tue 22 Nov 2011 19:21

Devart 7.1 Sqlite value returns

Post by jota » Tue 04 Sep 2018 17:32

Hello

When I use the following instructions:

Code: Select all

TUniProvider(UniProviders.GetProvider('SQLite')).GetConnectionOptions[i].OptionName = 'ConnectMode' 
TUniProvider(UniProviders.GetProvider('SQLite')).GetConnectionOptions[i].OptionName = 'EncryptionAlgorithm' 
the value retrieved for 'connectmode' and 'encryptionalgorithm', is zero.
Should it be like this? or it must be 'cmDefault' and 'leDefault'

Thanks

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Devart 7.1 Sqlite value returns

Post by MaximG » Mon 10 Sep 2018 14:04

Please describe the task in more detail. You can set the required option value as follows:

Code: Select all

UniConnection.SpecificOptions.Values['EncryptionAlgorithm'] := 'leDefault';
You can obtain the value using the following code:

Code: Select all

var
OptionValue: String;
begin
...
OptionValue := UniConnection.SpecificOptions.Values['ConnectMode'];

Post Reply