indexeddb init

This commit is contained in:
2025-08-14 22:49:19 -04:00
parent daa785c721
commit ad600a896c
4 changed files with 22 additions and 2 deletions

7
src/lib/db.ts Normal file
View File

@@ -0,0 +1,7 @@
import { openDB } from "idb";
export const dbPromise = openDB("icalPWA", 1, {
upgrade(db) {
db.createObjectStore("events", { keyPath: "id" });
},
});