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

[whatwg] SQL API complex for simple cases

From: Scott Hess <shess@google.com>
Date: Wed, 31 Oct 2007 17:50:23 -0700
Message-ID: <696e4b7c0710311750j37e026e8o59bf406dbb64daea@mail.gmail.com>
On Oct 31, 2007 5:40 PM, Brady Eidson <beidson at apple.com> wrote:
> I have an alternative to propose - how about reinstating
> Database.executeSql(), and do something like this.
>
> db.executeSql("select * from table;", [], <SQLStatementCallback>,
> <SQLStatementErrorCallback>, <SQLTransactionErrorCallback>);

I think SQLTransactionErrorCallback is redudant with
SQLStatementErrorCallback.  Hmm, in fact it cannot work, because
SQLStatementErrorCallback can return things like false to continue,
which doesn't make sense in this case.  So I think:

  db.executeSql("select * from table;", [], <SQLStatementCallback>,
<SQLTransactionErrorCallback>);

would be reasonable.

-scott
Received on Wednesday, 31 October 2007 17:50:23 UTC

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