Problem Executing Vacuum command in sqlite3 on iphone -


i found snippet executing vacuum of sqlite3 db doesn't work.

can tell me wrong it.

sqlite3_exec(database, "vacuum;", 0, 0); 

thanks...

ok here's solution make vacuum command work.

if(sqlite3_exec(database, "vacuum;", 0, 0, null) == sqlite_ok) {     nslog(@"vacuumed database"); } 

that makes command work app locked out of database while runs.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -