Re: [IndexedDB] Existence checking

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 UTC