Skip to content

Instantly share code, notes, and snippets.

Avatar

David Kern davidkern13

  • TelAviv
View GitHub Profile
@davidkern13
davidkern13 / app.js
Created Jan 8, 2022 — forked from prof3ssorSt3v3/app.js
IndexedDB part 2 - transactions and requests
View app.js
import { uid } from './uid.js';
console.log(uid());
//nothing else to import because we are using the built in methods
//https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase
const IDB = (function init() {
let db = null;
let objectStore = null;
let DBOpenReq = indexedDB.open('WhiskeyDB', 6);