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

Function from

packages/platform/browser/src/IndexedDbQueryBuilder.ts:1979–1991  ·  view source on GitHub ↗
(this: IndexedDbQueryBuilder<any>, table: any)

Source from the content-addressed store, hash-verified

1977 })
1978 },
1979 from(this: IndexedDbQueryBuilder<any>, table: any) {
1980 let cached = this.fromCache.get(table)
1981 if (cached === undefined) {
1982 cached = makeFrom({
1983 database: this.database,
1984 IDBKeyRange: this.IDBKeyRange,
1985 table: this.tables.get(table)!,
1986 reactivity: this.reactivity
1987 })
1988 this.fromCache.set(table, cached)
1989 }
1990 return cached as any
1991 },
1992 get clearAll() {
1993 const self = this as IndexedDbQueryBuilder<any>
1994 return applyClearAll({ database: self.database.current })

Callers 1

getClassSchemaFactoryFunction · 0.85

Calls 3

makeFromFunction · 0.85
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected