sqlite synchronous
android, cordova, javascript, sqlite
Solution
No, but there's a library that may help...
http://html5sql.com/
I've just started using it myself and it allows you to execute multiple or single SQL requests, with 1 callback. It may be just what you need :)
Problem
i have been using sqlite, phonegap, javascript and i m in need of fetching information from the sqlite db. I am able to fetch all info i need, insert, update, etc. The problem is javascript works asynchronously. That is it is processing all other succeeding statements before all the necessary info from database gets fetched. i have tried using callbacks all along and i am tired of it since there are difficulty in using loops. (not able to use sqlite queries within loops since loop gets iterated before the current sqlquery gets processed which is not what i want) is it possible to do these db operations synchronously? UPDATE Found out a new solution from here: webkit executesql sentence and loop problem