IndexedDB – Searching We encounter many situations where we need to search for values in an object store. Object stores are sorted internally. It can be done by − Searching by a key value or a key range. Searching based on another object field. Searching by Key We can search for exact key values or […]
Category Archives: indexeddb
IndexedDB – Indexes Indexes are a kind of object store used to retrieve data from the reference object stored by a specified property. Even though an index is inside the reference object store and contains the same data, instead of the reference store”s primary key it uses the specified property as its key path. Indexes […]
IndexedDB – Deleting Data There are many situations where we need to delete data from the database; be it for storage purposes or just removing unwanted data to free up space. If we want to delete this unnecessary data from a database we can use the .delete() function Syntax const request = objectStore.delete(data); We use […]