How to call "Vacuum" from Delphi code
Posted: Sat 09 Feb 2013 13:40
I need to call Vacuum in Delphi code (Delphi 2007, LiteDac Professional 1.6.4, registered). During development, I am not using "Direct Mode" but eventually I will use this as database needs to be encrypted.
I have seen the following code on one of the forum posts.
My Data Module "Uses" the following units but obviously that is not enough:
DB, DBAccess, LiteAccess, MemDS
I have TLiteConnection and TLiteQuery components on the Data Module. (No other LiteDac components are on Data Module.)
In which unit are Vacuum and PRAGMA_xyz declared?
Which object does the "Vacuum" procedure/function belong to, if any?
Thank You
JayM
I have seen the following code on one of the forum posts.
Code: Select all
PRAGMA page_size=16384;
VACUUM;
DB, DBAccess, LiteAccess, MemDS
I have TLiteConnection and TLiteQuery components on the Data Module. (No other LiteDac components are on Data Module.)
In which unit are Vacuum and PRAGMA_xyz declared?
Which object does the "Vacuum" procedure/function belong to, if any?
Thank You
JayM