Re: [IndexedDB] Add openCursor(key, primaryKey) and continuePrimaryKey (#14)

What should the behavior of `continuePrimaryKey()` be with `"prevunique"` iteration? Given this index:

* r1 = key: 'a', primary key: 1
* r2 = key: 'a', primary key: 2
* r3 = key: 'b', primary key: 1

If direction is "prevunique" and the cursor is at r3, `continue('a')` is specified to end up at r1 (the _first_ record with matching key).

Cases: 
* If direction is "prevunique" and the cursor is at r3, `continue('a', 2)` should end up at... ?
 * r2 seems to make the most sense here
* If direction is "prevunique" and the cursor is at r3, `continue('a', 'a3')` should end up at... ?
 * to me, r2 seems sensible here, but my intuition may be wonky




---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/14#issuecomment-109483122

Received on Friday, 5 June 2015 23:37:16 UTC