Module
Database.IndexedDB.IDBCursor
- Package
- purescript-indexed-db
- Repository
- ilyakooo0/purescript-indexed-DB
A cursor is used to iterate over a range of records in an index or an object store in a specific direction.
#continuePrimaryKey Source
continuePrimaryKey :: forall k cursor. IDBKey k => IDBCursor cursor => cursor -> k -> k -> Aff Unit
Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.
#direction Source
direction :: forall cursor. IDBConcreteCursor cursor => cursor -> CursorDirection
Returns the direction (Next|NextUnique|Prev|PrevUnique) of the cursor.
#key Source
key :: forall cursor. IDBConcreteCursor cursor => cursor -> Aff Key
Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
#primaryKey Source
primaryKey :: forall cursor. IDBConcreteCursor cursor => cursor -> Aff Key
Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
#source Source
source :: forall cursor. IDBConcreteCursor cursor => cursor -> CursorSource
Returns the IDBObjectStore or IDBIndex the cursor was opened from.
#value Source
value :: forall val. ValueCursor -> val
- Modules
- Database.
IndexedDB. Core - Database.
IndexedDB. IDBCursor - Database.
IndexedDB. IDBDatabase - Database.
IndexedDB. IDBFactory - Database.
IndexedDB. IDBIndex - Database.
IndexedDB. IDBKey - Database.
IndexedDB. IDBKey. Internal - Database.
IndexedDB. IDBKeyRange - Database.
IndexedDB. IDBObjectStore - Database.
IndexedDB. IDBTransaction