W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2007

[whatwg] Comments on updated SQL API

From: Maciej Stachowiak <mjs@apple.com>
Date: Wed, 17 Oct 2007 14:04:28 -0700
Message-ID: <762B85B5-4ECF-4504-981E-1BFD3CAB8621@apple.com>

On Oct 17, 2007, at 1:14 PM, Scott Hess wrote:

> On 10/17/07, Maciej Stachowiak <mjs at apple.com> wrote:
>> I'm not sure what other reasons Scott sees for (2). I do think it
>> would aid authoring clarity to have the word "transaction" in the  
>> API,
>> even if the model of how they are managed is much the same as
>> currently (so you can't forget to close it) and even if a
>> transactionless API is not added.
>
> I think my concern is in two related bits:
>
> A) As things currently stand, the developer simply can't roll their
> own transaction structure.  Passing BEGIN, COMMIT, or ROLLBACK to
> executeSql() doesn't do anything sensible.  It's possible you could
> somehow do something using temporary tables, but that's going to be
> really dependent on your underlying SQL implementation's capabilities.

Would replacing closeTransaction() with commitTransaction() and  
rollbackTransaction() address this?

Regards,
Maciej
Received on Wednesday, 17 October 2007 14:04:28 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:37 UTC