[whatwg] executeSql API is synchronous

Timothy Hatcher timothy at apple.com
Thu Sep 20 13:14:08 PDT 2007


The pain of asynchronous access can be alleviated or even solved with  
an API for transactions, or a group of SQL queries that need be  
executed in order. Commonly, if a transaction fails in the middle, the  
database is rolled-back to the state before the transaction started.

There can then be a callback when the transaction finished or fails,  
with details on what query failed.

On Sep 20, 2007, at 10:13 AM, Aaron Boodman wrote:

> That said, it will be even more common with databases to have  
> multiple asynchronous operations in a row than it is today with XHR.  
> Doing this all asynchronously will be incredibly painful.

— Timothy Hatcher


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20070920/eece8375/attachment-0001.htm>


More information about the whatwg mailing list