Module
Database.IndexedDB.IDBIndex
- Package
- purescript-indexeddb
- Repository
- truqu/purescript-indexedDB
An index allows looking up records in an object store using properties of the values in the object stores records.
#openCursor Source
openCursor :: forall index e' e. IDBIndex index => index -> Maybe KeyRange -> CursorDirection -> Callbacks ValueCursor e' -> Aff (idb :: IDB | e) Unit
Opens a ValueCursor over the records matching query, ordered by direction.
If query is Nothing
, all records in index are matched.
#openKeyCursor Source
openKeyCursor :: forall index e' e. IDBIndex index => index -> Maybe KeyRange -> CursorDirection -> Callbacks KeyCursor e' -> Aff (idb :: IDB | e) Unit
Opens a KeyCursor over the records matching query, ordered by direction.
If query is Nothing
, all records in index are matched.
#multiEntry Source
multiEntry :: Index -> Boolean
Returns true if the index's multiEntry flag is set.
#objectStore Source
objectStore :: Index -> ObjectStore
Returns the IDBObjectStore the index belongs to.
- 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