I am getting direct mode not supported with Unidac 6.1.4 and Lazarus 1.4. I can see the direct option in the component user interface but in the debugger I am getting that the feature is not supported when I reach conn.Connect.
The code is as below:
Code: Select all
FUNCTION QueryS.Connect(): BOOLEAN;
BEGIN
TRY
conn := TUniConnection.Create(nil);
conn.ProviderName := 'Sqlite';
conn.Database := _db_filename;
conn.SpecificOptions.Values['ForceCreateDatabase'] := 'true';
conn.SpecificOptions.Values['Direct'] := 'true';
conn.Connect;
Result := conn.Connected;
EXCEPT
on Exception DO
Result := False;
END;
END;
Thank you,