If I use the below code:
var db = openDatabase("CurrADinfo", "1", "A list of QC Points.", 100000);
db.transaction(function (tx) {
tx.executeSql('CREATE TABLE foo (id , text)');
});
It will create or open the database CurrADinfo if it exists. But the second line will always create a new table.
I want to create a table once and next time when I try to create it should return a flag that it is found in the database. How can I do that?