IndexedDB – Error Handling Not all requests we write will return an output. This may happen due to − possible errors while writing the code. If the storage limit has been exceeded. If transactions have failed etc. In a failed request the transaction is canceled, and all the changes are reverted. But sometimes we want […]
Category Archives: indexeddb
IndexedDB – Cursors In retrieving data we used the get() function when we knew what key we wanted to retrieve but if we want to step through all the values of the object store we can use cursors. Firstly we use the open cursor function and then we can add our arguments to it. The […]
IndexedDB – Transactions A transaction is a group of operations, that should either all succeed, or all fail. For example, if we pay from UPI to a merchant and the transaction declines then the money must fall back to the senders” account. A transaction maintains this integrity. Following is the syntax for opening a transaction […]