W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010

Re: [IndexedDB] Existence checking

From: Nathan Kitchen <w3c@nathankitchen.com>
Date: Mon, 5 Jul 2010 21:55:42 +0100
Message-ID: <AANLkTikPlAiyRJ7PMlA07aj57hjvs9PNyjuRw2bWD7JW@mail.gmail.com>
To: Shawn Wilsher <sdwilsh@mozilla.com>
Cc: public-webapps@w3.org
That would do the trick, yes. Thanks for pointing it out, all my w3
spec reading skills are belong to you.

On Mon, Jul 5, 2010 at 4:44 PM, Shawn Wilsher <sdwilsh@mozilla.com> wrote:
>  On 7/5/2010 3:19 AM, Nathan Kitchen wrote:
>>
>> There are a couple of ways to do this:
>
> I think you missed one.  IDBDatabase has a property objectStores [1] that is
> an array of object stores.  Additionally, IDBObjectStore has a property
> called indexNames [2] that is an array of indexes for the object store.  We
> should probably look into having the same naming convention for both of
> those (objectStores and indexes or objectStoreNames and indexNames
> probably?).
>
> This accomplishes what you want, right?
>
> Cheers,
>
> Shawn
>
> [1]
> http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#widl-IDBDatabase-objectStores
> [2]
> http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#widl-IDBObjectStore-indexNames
>
>
Received on Monday, 5 July 2010 20:56:17 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:39 GMT