Draft: This page is not complete.
Warning: The synchronous version of the IndexedDB API was originally intended for use only with Web Workers, and was eventually removed from the spec because its need was questionable. It may however be reintroduced in the future if there is enough demand from web developers.
IDBCursorSync interface of the IndexedDB API represents a cursor for iterating over multiple records in a database. You can have only one instance of
IDBCursorSync representing a cursor, but you can have an unlimited number of cursors at the same time. Operations are performed on the underlying index or object store. It enables an application to synchronously process all the records in the cursor's range.
||The total number of objects that share the current key.|
||The direction of traversal of the cursor. See Constants for possible values.|
||The key for the record at the cursor's position.|
The value for the record at the cursor's position. Setting this attribute can raise an IDBDatabaseException with the following codes:
||0||This cursor includes duplicates, and its direction is monotonically increasing in the order of keys.|
||1||This cursor does not include duplicates, and its direction is monotonically increasing in the order of keys.|
||2||This cursor includes duplicates, and its direction is monotonically decreasing in the order of keys.|
||3||This cursor does not include duplicates, and its direction is monotonically decreasing in the order of keys.|
Advances the cursor to the next position along its direction, to the item whose key matches the optional
key parameter. If no key is specified, advance to the immediate next position. Returns false if the cursor has reached the end of its range; otherwise returns true.
bool continue ( in optional any key );
The key to which to move the cursor's position.
Deletes the record at the cursor's position, without changing the cursor's position
void delete ( ) raises (DatabaseException);
This method can raise an IDBDatabaseException with the following code: