Page 1 of 1

how do I clear sqlite table each time app loads?

Posted: Mon Jul 08, 2013 10:53 pm
by Scott Camacho5948926

is there a command to clear out the sqlite database the iphone so that I can do better testing. It seems to save the user data after I login via facebook, etc. I would like to clear it out so I can run some tests. thanks


how do I clear sqlite table each time app loads?

Posted: Mon Jul 08, 2013 10:55 pm
by maxkatz

Probably the best way to find out is to check SQLite API and what it provides...


how do I clear sqlite table each time app loads?

Posted: Mon Jul 08, 2013 11:06 pm
by Scott Camacho5948926

ok. This is what the app uses by default to store local variables correct?


how do I clear sqlite table each time app loads?

Posted: Mon Jul 08, 2013 11:07 pm
by maxkatz

If you are talking about local storage -- it's different than sqlite.


how do I clear sqlite table each time app loads?

Posted: Mon Jul 08, 2013 11:13 pm
by Scott Camacho5948926

ok sorry, It is local storage that I want to clear out each time the app loads for now. I have found this and modified it will it work perhaps?

for (var i in localStorage){
localStorage = '';
}

I am about to try it.


how do I clear sqlite table each time app loads?

Posted: Mon Jul 08, 2013 11:20 pm
by maxkatz