From 298a7975383ccb7949ca8203c672453d61304f88 Mon Sep 17 00:00:00 2001 From: Jack Case Date: Sat, 6 Dec 2025 13:52:26 +0000 Subject: [PATCH] starting checkcache class to wrap the checkcache object store --- src/indexed-db.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/indexed-db.ts b/src/indexed-db.ts index 7c85aeb..81bf47f 100644 --- a/src/indexed-db.ts +++ b/src/indexed-db.ts @@ -50,4 +50,17 @@ class SlopDB { return db_promise } +} + +class CheckCache { + slopdb: SlopDB + + constructor(slopdb: SlopDB) { + this.slopdb = slopdb + } + + start_transaction(mode: IDBTransactionMode): IDBTransaction { + const transaction = this.slopdb.db.transaction("checkcache", mode) + return transaction + } } \ No newline at end of file