Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created May 11, 2018 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/94f37ad9ad436ed7453106cd30d98d01 to your computer and use it in GitHub Desktop.
Save goofmint/94f37ad9ad436ed7453106cd30d98d01 to your computer and use it in GitHub Desktop.
const transaction = db.transaction(["items"]);
const objItem = transaction.objectStore("items");
objItem.getAll().onsuccess = function(event) {
const rows = event.target.result;
console.log(rows);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment