@@ -5911,63 +5911,53 @@ To <dfn>iterate a cursor</dfn> with |targetRealm|, |cursor|, an optional
5911
5911
Let |found record| be the first record in |records| which
5912
5912
satisfy all of the following requirements:
5913
5913
5914
- * If |key| is defined, the record's key is [=greater
5915
- than=] or [=equal to=] |key|.
5914
+ * If |key| is defined:
5915
+ * The record's key is [=greater than=] or [=equal to=] |key|.
5916
5916
5917
- * If |primaryKey| is defined, the record's key is [=equal
5918
- to=] |key| and the record's value is [=greater
5919
- than=] or [=equal to=] |primaryKey|, or the
5920
- record's key is [=greater than=] |key|.
5917
+ * If |primaryKey| is defined:
5918
+ * The record's key is [=equal to=] |key| and the record's value is [=greater than=] or [=equal to=] |primaryKey|
5919
+ * The record's key is [=greater than=] |key|.
5921
5920
5922
- * If |position| is defined, and |source| is an
5923
- [=/object store=] , the record's key is [=greater than=]
5924
- |position|.
5921
+ * If |position| is defined and |source| is an [=/object store=] :
5922
+ * The record's key is [=greater than=] |position|.
5925
5923
5926
- * If |position| is defined, and |source| is an
5927
- [=/index=] , the record's key is [=equal to=]
5928
- |position| and the record's value is [=greater
5929
- than=] |object store position| or the record's key is
5930
- [=greater than=] |position|.
5924
+ * If |position| is defined and |source| is an [=/index=] :
5925
+ * The record's key is [=equal to=] |position| and the record's value is [=greater than=] |object store position|
5926
+ * The record's key is [=greater than=] |position|.
5931
5927
5932
- * The record's key is [=in=]
5933
- |range|.
5928
+ * The record's key is [=in=] |range|.
5934
5929
5935
5930
: "{{IDBCursorDirection/nextunique}} "
5936
5931
::
5937
5932
Let |found record| be the first record in |records| which
5938
5933
satisfy all of the following requirements:
5939
5934
5940
- * If |key| is defined, the record's key is [=greater
5941
- than=] or [=equal to=] |key|.
5935
+ * If |key| is defined:
5936
+ * The record's key is [=greater than=] or [=equal to=] |key|.
5942
5937
5943
- * If |position| is defined, the record's key is [=greater
5944
- than=] |position|.
5938
+ * If |position| is defined:
5939
+ * The record's key is [=greater than=] |position|.
5945
5940
5946
- * The record's key is [=in=]
5947
- |range|.
5941
+ * The record's key is [=in=] |range|.
5948
5942
5949
5943
: "{{IDBCursorDirection/prev}} "
5950
5944
::
5951
5945
Let |found record| be the last record in |records| which
5952
5946
satisfy all of the following requirements:
5953
5947
5954
- * If |key| is defined, the record's key is [=less
5955
- than=] or [=equal to=] |key|.
5948
+ * If |key| is defined:
5949
+ * The record's key is [=less than=] or [=equal to=] |key|.
5956
5950
5957
- * If |primaryKey| is defined, the record's key is [=equal
5958
- to=] |key| and the record's value is [=less than=]
5959
- or [=equal to=] |primaryKey|, or the record's key is
5960
- [=less than=] |key|.
5951
+ * If |primaryKey| is defined:
5952
+ * The record's key is [=equal to=] |key| and the record's value is [=less than=] or [=equal to=] |primaryKey|
5953
+ * The record's key is [=less than=] |key|.
5961
5954
5962
- * If |position| is defined, and |source| is an
5963
- [=/object store=] , the record's key is [=less
5964
- than=] |position|.
5955
+ * If |position| is defined and |source| is an [=/object store=] :
5956
+ * The record's key is [=less than=] |position|.
5965
5957
5966
- * If |position| is defined, and |source| is an
5967
- [=/index=] , the record's key is [=equal to=]
5968
- |position| and the record's value is [=less than=]
5969
- |object store position| or the record's key is
5970
- [=less than=] |position|.
5958
+ * If |position| is defined and |source| is an [=/index=] :
5959
+ * The record's key is [=equal to=] |position| and the record's value is [=less than=] |object store position|
5960
+ * The record's key is [=less than=] |position|.
5971
5961
5972
5962
* The record's key is [=in=] |range|.
5973
5963
@@ -5976,14 +5966,13 @@ To <dfn>iterate a cursor</dfn> with |targetRealm|, |cursor|, an optional
5976
5966
Let |temp record| be the last record in
5977
5967
|records| which satisfy all of the following requirements:
5978
5968
5979
- * If |key| is defined, the record's key is [=less
5980
- than=] or [=equal to=] |key|.
5969
+ * If |key| is defined:
5970
+ * The record's key is [=less than=] or [=equal to=] |key|.
5981
5971
5982
- * If |position| is defined, the record's key is [=less
5983
- than=] |position|.
5972
+ * If |position| is defined:
5973
+ * The record's key is [=less than=] |position|.
5984
5974
5985
- * The record's key is [=in=]
5986
- |range|.
5975
+ * The record's key is [=in=] |range|.
5987
5976
5988
5977
If |temp record| is defined, let |found record| be the
5989
5978
first record in |records| whose [=/key=] is [=equal to=]
@@ -6728,6 +6717,7 @@ For the revision history of the second edition, see [that document's Revision Hi
6728
6717
* Add [=cursor/source handle=] to [=/cursor=] to avoid exposing internal indexes and object stores to script. (<#445>)
6729
6718
* Define [=Queue a database task=] and replace [=Queue a task=] with it (<#421>)
6730
6719
* Add missing parallel step to {{IDBFactory/databases()|databases}} () (<#421>)
6720
+ * Clarify cursor iteration predicates (<#450>)
6731
6721
6732
6722
<!-- ============================================================ -->
6733
6723
# Acknowledgements # {#acknowledgements}
0 commit comments