An informative tutorial online demonstrates the following transaction:
db.transaction(function (tx) {
tx.executeSql('CREATE TABLE IF NOT EXISTS LOGS (id unique, log)');
tx.executeSql('INSERT INTO LOGS (id, log) VALUES (1, "foobar")');
tx.executeSql('INSERT INTO LOGS (id, log) VALUES (2, "logmsg")');
});
I have come across discussions stating that these queries (each executeSql) are executed asynchronously within the transaction.
If this is true, is there a risk of attempting to insert before the table has been created?
Or is this information incorrect? Are the queries executed sequentially within a transaction?