Function iterate_cursor

Source
pub(crate) fn iterate_cursor(
    global: &GlobalScope,
    cx: JSContext,
    param: &IterationParam,
    records: Vec<IndexedDBRecord>,
) -> Result<Option<DomRoot<IDBCursor>>, Error>
Expand description

https://www.w3.org/TR/IndexedDB-2/#iterate-a-cursor

NOTE: Be cautious: this part of the specification seems to assume the cursor’s source is an index. Therefore, “record’s key” means the key of the record, “record’s value” means the primary key of the record, and “record’s referenced value” means the value of the record.