indexeddb init
This commit is contained in:
7
src/lib/db.ts
Normal file
7
src/lib/db.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { openDB } from "idb";
|
||||
|
||||
export const dbPromise = openDB("icalPWA", 1, {
|
||||
upgrade(db) {
|
||||
db.createObjectStore("events", { keyPath: "id" });
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user