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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -