[w3c/IndexedDB] How to read direction predicates in iterate a cursor? (Issue #450)

stelar7 created an issue (w3c/IndexedDB#450)

for [iterate a cursor](https://w3c.github.io/IndexedDB/#iterate-a-cursor) there is some conditions for what is the "next" value.

```
* If key is defined, the record’s key is greater than or equal to key.
* If primaryKey is defined, the record’s key is equal to key and the record’s value is greater than or equal to primaryKey, or the record’s key is greater than key.
* If position is defined, and source is an object store, the record’s key is greater than position.
* If position is defined, and source is an index, the record’s key is equal to position and the record’s value is greater than object store position or the record’s key is greater than position.
* The record’s key is in range.
```

How are some of these conditions supposed to be read?
eg. the second one, is it like this?
```
If primaryKey is defined:
 the record’s key is equal to key and the record’s value is greater than or equal to primaryKey, 
else:
 the record’s key is greater than key.
```
or like this?
```
If primaryKey is defined:
 (the record’s key is equal to key and the record’s value is greater than or equal to primaryKey) OR the record’s key is greater than key.
```

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

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

Received on Tuesday, 29 April 2025 16:06:34 UTC