Re: [w3c/IndexedDB] How to compare a Record to a Key? (Issue #451)

inexorabletash left a comment (w3c/IndexedDB#451)

In the case where a record's value is being compared to a key, the record is in an index not an object store, and per [ยง2.6](https://w3c.github.io/IndexedDB/#index-construct), the [values in an index's records](https://w3c.github.io/IndexedDB/#index-values) are themselves keys. 

The only call site for [iterate a cursor](https://w3c.github.io/IndexedDB/#iterate-a-cursor) that passes primaryKey is [continuePrimaryKey()](https://w3c.github.io/IndexedDB/#dom-idbcursor-continueprimarykey) which is only valid for cursors on indexes.



-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/451#issuecomment-2839554912
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/IndexedDB/issues/451/2839554912@github.com>

Received on Tuesday, 29 April 2025 16:41:54 UTC