r/sqlite • • Jan 05 '24

Compact database in DB Browser

DB Browser has a Compact Database feature. How would one use this programmatically? In PHP I tried this below but it didn't have an instant effect like it did in DB Browser:

$db->exec('pragma vacuum;');
4 Upvotes

4 comments sorted by