javascript - HTML 5 SQLite: Multiple Inserts in One Transaction -


Is it possible to do something like this:

  get started; Insert in some table (some_col, another_col) value ('A', 'B'); Insert into some table (some_col, another_col) value ('c', 'd'); ... committed;  

... in HTML5?

With having async with each transaction and having its callback, I think it would be difficult to write regularly, an unknown amount of rows, and then calls back upon completion.

How do you sample it here? In Macs, iOS and Android I have tested on recent versions of Safari and Chrome.

  var db = openDatabase ('dbname', '1.0', 'db description', 1024 * 1024); Insert Db.transaction (function (tx) {tx.executeSQL ("some_table (some_cabl, another_col) values ​​('a', 'b');"); tx.executeSQL ("insert in some_ table (some_col, another_col) value ('C', 'D'); "); ...},  

)


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -