IDBRequest
IDBRequest is a JavaScript interface in the IndexedDB API that represents an asynchronous operation request. It is the generic request object returned by many operations on IndexedDB objects, including methods on IDBDatabase, IDBObjectStore, and IDBIndex such as add, put, get, delete, clear, and cursor operations. It is also used by the initial open request when opening a database.
The IDBRequest object exposes several properties. readyState indicates whether the operation is still pending or has
IDBRequest implements the EventTarget interface and provides the event handlers onsuccess and onerror to respond to
IDBOpenDBRequest is a specialized subtype of IDBRequest used for opening databases, which may expose additional events