DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/type-aliases/IndexReader.md
IndexReader
ts
type IndexReader<TKey> = Pick<IndexInterface<TKey>,
| "lookup"
| "rangeQuery"
| "take"
| "takeFromStart"
| "keyCount"
| "supports"
| "supportsRangeOptimization"
| "supportsOrderOptimization"
| "canOptimizeRangeFor">;Defined in: packages/db/src/indexes/base-index.ts:61
The read-side surface consumers use on a resolved (possibly reversed) index.
Type Parameters#
TKey#
TKey extends string | number = string | number