OL2 (fix) Simplify idb (#5174)

* Simplify idb usage and collapse the class

* fix tests

* fmt
This commit is contained in:
Adam Hathcock
2025-08-26 12:06:47 +01:00
committed by GitHub
parent 6982023dca
commit cab2a401db
11 changed files with 180 additions and 247 deletions
@@ -12,7 +12,7 @@ export interface Downloader extends Queue<string> {
}
export interface Database {
getAll(keys: string[]): Promise<(Item | undefined)[]>
saveBatch(params: { batch: Item[] }): Promise<void>
disposeAsync(): Promise<void>
getAll(ids: string[]): Promise<(Item | undefined)[]>
putAll(batch: Item[]): Promise<void>
dispose(): void
}