MCPcopy Create free account
hub / github.com/Effect-TS/effect / use

Function use

packages/platform/browser/src/IndexedDbQueryBuilder.ts:1969–1978  ·  view source on GitHub ↗
(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

Calls 1

fFunction · 0.50

Tested by

no test coverage detected