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

Function count

packages/platform/browser/src/IndexedDbQueryBuilder.ts:1359–1372  ·  view source on GitHub ↗
(
    this: IndexedDbQuery.From<any>,
    index?: Index
  )

Source from the content-addressed store, hash-verified

1357 return select
1358 },
1359 count<Index extends IndexedDbDatabase.IndexFromTable<any>>(
1360 this: IndexedDbQuery.From<any>,
1361 index?: Index
1362 ) {
1363 let count = this.countCache.get(index)
1364 if (count === undefined) {
1365 count = makeCount({
1366 from: this,
1367 index
1368 })
1369 this.countCache.set(index, count)
1370 }
1371 return count
1372 },
1373 delete<Index extends IndexedDbDatabase.IndexFromTable<any>>(
1374 this: IndexedDbQuery.From<any>,
1375 index?: Index

Callers

nothing calls this directly

Calls 3

makeCountFunction · 0.85
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected