Module
Database.IndexedDB.IDBCursor
- Package
- purescript-indexeddb
- Repository
- truqu/purescript-indexedDB
A cursor is used to iterate over a range of records in an index or an object store in a specific direction.
#direction Source
direction :: forall cursor. IDBConcreteCursor cursor => cursor -> CursorDirection
Returns the direction (Next|NextUnique|Prev|PrevUnique) of the cursor.
#key Source
key :: forall cursor e. IDBConcreteCursor cursor => cursor -> Aff (idb :: IDB | e) Key
Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
#primaryKey Source
primaryKey :: forall cursor e. IDBConcreteCursor cursor => cursor -> Aff (idb :: IDB | e) 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