IndexedDB – Ranges When we don’t want to get all the data at once we use ranges. When we want to get data in a specific range only we use ranges. We define the range using the IDBKeyRange object. This object has 4 methods which are − upperBound() lowerBound() bound() only() Syntax IDBKeyRange.lowerBound(indexKey); IDBKeyRange.upperBound(indexKey); IDBKeyRange.bound(lowerIndexKey, […]
Category Archives: indexeddb
IndexedDB – Promise Wrapper Promises, like callbacks, are a technique of telling what you want your code to perform once an asynchronous operation completes without stopping the runtime’s thread of javascript. Instead of supplying a callback to an asynchronous function to run after it completes, promises can be used instead. Promise library was created by […]
IndexedDB – Quick Guide IndexedDB – Introduction A database management system provides a mechanism for the storage and retrieval of data. There are various kinds of databases available mostly used ones among them are − Hierarchical databases Network databases Object-oriented databases Relational databases NoSQL databases NoSQL databases A NoSQL database (sometimes called Not Only SQL) […]