Function
use
(this: IndexedDbQueryBuilder<any>, f: (database: globalThis.IDBDatabase) => any)
Source from the content-addressed store, hash-verified
| 1967 | | "reactivity" |
| 1968 | > = { |
| 1969 | use(this: IndexedDbQueryBuilder<any>, f: (database: globalThis.IDBDatabase) => any) { |
| 1970 | return Effect.try({ |
| 1971 | try: () => f(this.database.current), |
| 1972 | catch: (error) => |
| 1973 | new IndexedDbQueryError({ |
| 1974 | reason: "UnknownError", |
| 1975 | cause: error |
| 1976 | }) |
| 1977 | }) |
| 1978 | }, |
| 1979 | from(this: IndexedDbQueryBuilder<any>, table: any) { |
| 1980 | let cached = this.fromCache.get(table) |
| 1981 | if (cached === undefined) { |
Callers
nothing calls this directly
Tested by
no test coverage detected