I try to delete all the elements in my sqlite to reconstruct it with an .sql file. For this I found that code:
PRAGMA writable_schema = 1;
delete from sqlite_master where type in ('table', 'index', 'trigger');
PRAGMA writable_schema = 0;
I use the FMDB to execute SQL commands for info.
I precise that I don't want to empty the tables, I want to completely reconstruct my sqlite, so I need to delete all the elements in the sqlites like tables, indexes.
EDIT:
I am trying to do a sort of loop, but sqlite is not SQL, so I don't know how to do it.
Thanks in advance.