Run vacuum SQLite

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
gandalf
Posts: 21
Joined: Mon 20 Feb 2012 17:43

Run vacuum SQLite

Post by gandalf » Fri 16 Mar 2012 18:26

Is it possible to do a vacuum on a SQLite database via UniDac?

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

Post by AlexP » Mon 19 Mar 2012 12:15

Hello,

You can call the VACUUM command in the following way:

Code: Select all

  UniConnection1.ExecSQL('VACUUM',[]);
or use PRAGMA for setting auto_vacuum

Code: Select all

  UniConnection1.ExecSQL('PRAGMA auto_vacuum = 1',[]); // 0 | NONE | 1 | FULL | 2 | INCREMENTAL

gandalf
Posts: 21
Joined: Mon 20 Feb 2012 17:43

Post by gandalf » Mon 19 Mar 2012 15:26

Thank you for the info! :)

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

Post by AlexP » Mon 19 Mar 2012 15:34

Hello,

If you have any other questions, feel free to contact us.

Post Reply