I have tried various names and valuesin the macros tab of the UniConnection but none seem to work
If I wanted to implement pragma journal_mode= WAL how would I go about it?
passing pragma arguments to sqlite
If you want to set the journal mode, you should execute the following SQL query:
in Delphi it can be executed by the following code:
To define a macro you can use the following code:
You can find more detailed information about macros in the UniDAC help.
Code: Select all
PRAGMA journal_mode = WAL
Code: Select all
begin
UniSQL1.SQL.Text := 'PRAGMA journal_mode = WAL';
UniSQL1.Execute;
end;
Code: Select all
UniConnection1.MacroByName('a').Value := 'test';