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)

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