Update the Data of the Object Store
Learn to update the data present in the object store.
We'll cover the following...
We can use the put()
method to update the data in the object store of the IndexedDB
database. Follow the steps below to update the data in the object store:
Open the database.
Create a
readwrite
transaction.Access the object store in which the data is to be updated.
Use the
put()
method to update the data in the object store.
We know how to open database connections, create transactions, and access ...