W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

Re: [Bug 11948] New: index.openCursor's cursor should have a way to access the index's "value" (in addition to the index's key and objectStore's value)

From: Jonas Sicking <jonas@sicking.cc>
Date: Fri, 4 Feb 2011 13:36:38 -0800
Message-ID: <AANLkTimycgazg4vfPsifXiNgB-TtjtYFbzNsMxrVHHAu@mail.gmail.com>
To: Shawn Wilsher <sdwilsh@mozilla.com>
Cc: public-webapps@w3.org
On Fri, Feb 4, 2011 at 11:14 AM, Shawn Wilsher <sdwilsh@mozilla.com> wrote:
> On 2/1/2011 11:00 AM, bugzilla@jessica.w3.org wrote:
>> As discussed in the mailing list thread from bug 11257, we should add some
>> way
>> for index.openCursor cursors to access the primary key for the
>> objectStore.
>> .indexValue, .objectStoreKey, or .primaryKey might be good names to use
>> for it.
> .objectStoreKey seems to be the most clear way to express this to me.

Oh, I missed that the original bug included a few suggestions. Given
that both me and Jeremy independently thought of "indexValue" and
"primaryKey" I think that's a decent sign that they are intuitive
names. I happen to like "primaryKey" the most as it's really a key
rather than a value that we've got here.

For some reason objectStoreKey makes me think that it's connected to
the objectStore rather than the entry in it.

/ Jonas
Received on Friday, 4 February 2011 21:37:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:16 UTC