Indexed Database API 3.0

PHOTO EMBED

Sat Aug 02 2025 19:46:58 GMT+0000 (Coordinated Universal Time)

Saved by @Asneedarazali #javascript

const tx = db.transaction("books", "readonly");
const store = tx.objectStore("books");
const index = store.index("by_title");

const request = index.get("Bedrock Nights");
request.onsuccess = function() {
  const matching = request.result;
  if (matching !== undefined) {
    // A match was found.
    report(matching.isbn, matching.title, matching.author);
  } else {
    // No match was found.
    report(null);
  }
};
content_copyCOPY

https://www.w3.org/TR/2025/WD-IndexedDB-3-20250731/