W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2010

Re: [IndexDB] Proposal for async API changes

From: Jonas Sicking <jonas@sicking.cc>
Date: Tue, 15 Jun 2010 12:17:00 -0700
Message-ID: <AANLkTikZD8tcen50gIl4moLzqUon62cBJ5QZ7K-nU5Yn@mail.gmail.com>
To: Nikunj Mehta <nikunj@o-micron.com>
Cc: Webapps WG <public-webapps@w3.org>
On Tue, Jun 15, 2010 at 9:44 AM, Nikunj Mehta <nikunj@o-micron.com> wrote:
> (specifically answering out of context)
> On May 17, 2010, at 6:15 PM, Jonas Sicking wrote:
>> 9. IDBKeyRanges are created using functions on IndexedDatabaseRequest.
>> We couldn't figure out how the old API allowed you to create a range
>> object without first having a range object.
> Hey Jonas,
> What was the problem in simply creating it like it is shown in examples? The API is intentionally designed that way to be able to use constants such as LEFT_BOUND and operations like only directly from the interface.
> For example,
> IDBKeyRange.LEFT_BOUND; // this should evaluate to 4
> IDBKeyRange.only("a").left; // this should evaluate to "a"
> Let me know if you need help with this IDL. Also, it might be a good idea to get the WebIDL experts involved in clarifying such questions rather than changing the API.

If that is the intended syntax then that looks ok with me. What
confused me was the IDL. We should definitely have keyrange stuff as a
separate thread though, I'll start one today.

/ Jonas
Received on Tuesday, 15 June 2010 19:17:55 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:25 UTC