Module
Database.IndexedDB.IDBTransaction
- Package
- purescript-indexeddb
- Repository
- truqu/purescript-indexedDB
An object store is the primary storage mechanism for storing data in a database.
#abort Source
abort :: forall tx e. IDBTransaction tx => tx -> Aff (idb :: IDB | e) UnitAborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
#objectStore Source
objectStore :: forall tx e. IDBTransaction tx => tx -> String -> Aff (idb :: IDB | e) ObjectStoreReturns an IDBObjectStore in the transaction's scope.
#error Source
error :: Transaction -> Maybe ErrorIf the transaction was aborted, returns the error (a DOMException) providing the reason.
#mode Source
mode :: Transaction -> TransactionModeReturns the mode the transaction was created with (ReadOnly|ReadWrite)
, or VersionChange for an upgrade transaction.
#onComplete Source
onComplete :: forall e' e. Transaction -> Eff e' Unit -> Aff (idb :: IDB | e) UnitEvent handler for the complete event.
- 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