Database.IndexedDB.IDBDatabase  
- Package
- purescript-indexeddb
- Repository
- truqu/purescript-indexedDB
Each origin has an associated set of databases. A database has zero or more object stores which hold the data stored in the database.
#ObjectStoreParameters Source
type ObjectStoreParameters = { autoIncrement :: Boolean, keyPath :: KeyPath }Options provided when creating an object store.
#close Source
close :: forall db e. IDBDatabase db => db -> Aff (idb :: IDB | e) UnitCloses the connection once all running transactions have finished.
#createObjectStore Source
createObjectStore :: forall db e. IDBDatabase db => db -> StoreName -> ObjectStoreParameters -> Aff (idb :: IDB | e) ObjectStoreCreates a new object store with the given name and options and returns a new IDBObjectStore.
Throws a "InvalidStateError" DOMException if not called within an upgrade transaction
#deleteObjectStore Source
deleteObjectStore :: forall db e. IDBDatabase db => db -> StoreName -> Aff (idb :: IDB | e) ObjectStoreDeletes the object store with the given name.
Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
#transaction Source
transaction :: forall db e. IDBDatabase db => db -> Array StoreName -> TransactionMode -> Aff (idb :: IDB | e) TransactionReturns a new transaction with the given mode (ReadOnly|ReadWrite) and scope which in the form of an array of object store names.
#objectStoreNames Source
objectStoreNames :: Database -> Array StringReturns a list of the names of object stores in the database.
- 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