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/interfaces/IndexOptions.md
IndexOptions
Defined in: packages/db/src/indexes/index-options.ts:6
Options for creating an index
Type Parameters#
TIndexType#
TIndexType extends IndexConstructor = IndexConstructor
Properties#
indexType?#
ts
optional indexType: TIndexType;Defined in: packages/db/src/indexes/index-options.ts:12
Index type to use (e.g., BasicIndex, BTreeIndex)
name?#
ts
optional name: string;Defined in: packages/db/src/indexes/index-options.ts:10
Optional name for the index
options?#
ts
optional options: TIndexType extends (id, expr, name?, options?) => any ? O : never;Defined in: packages/db/src/indexes/index-options.ts:14
Options passed to the index constructor