Skip to content

Instantly share code, notes, and snippets.

View davidkern13's full-sized avatar

David Kern davidkern13

  • TelAviv
View GitHub Profile
@davidkern13
davidkern13 / app.js
Created January 8, 2022 08:34 — forked from prof3ssorSt3v3/app.js
IndexedDB part 2 - transactions and requests
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);