Class ReactiveIDBIndex<T>
Constructors
constructor
-
Type parameters
Parameters
Accessors
keyPath
- get keyPath(): string | string[]
-
Returns string | string[]
multiEntry
- get multiEntry(): boolean
Methods
count$
- count$(key?: string | number | Date | ArrayBufferView | ArrayBuffer | IDBArrayKey | IDBKeyRange): Observable<number>
-
Parameters
-
Optional key: string | number | Date | ArrayBufferView | ArrayBuffer | IDBArrayKey | IDBKeyRange
Returns Observable<number>
get$
- get$(key: string | number | Date | ArrayBufferView | ArrayBuffer | IDBArrayKey | IDBKeyRange): Observable<undefined | T>
-
Parameters
-
key: string | number | Date | ArrayBufferView | ArrayBuffer | IDBArrayKey | IDBKeyRange
Returns Observable<undefined | T>
getAll$
- getAll$(query?: null | string | number | Date | ArrayBufferView | ArrayBuffer | IDBArrayKey | IDBKeyRange, count?: number): Observable<T[]>
-
Parameters
-
Optional query: null | string | number | Date | ArrayBufferView | ArrayBuffer | IDBArrayKey | IDBKeyRange
-
Optional count: number
Returns Observable<T[]>
getAllKeys$
- getAllKeys$(query?: null | string | number | Date | ArrayBufferView | ArrayBuffer | IDBArrayKey | IDBKeyRange, count?: number): Observable<IDBValidKey[]>
-
Parameters
-
Optional query: null | string | number | Date | ArrayBufferView | ArrayBuffer | IDBArrayKey | IDBKeyRange
-
Optional count: number
Returns Observable<IDBValidKey[]>
getKey$
- getKey$(key: string | number | Date | ArrayBufferView | ArrayBuffer | IDBArrayKey | IDBKeyRange): Observable<undefined | string | number | Date | ArrayBufferView | ArrayBuffer | IDBArrayKey>
-
Parameters
-
key: string | number | Date | ArrayBufferView | ArrayBuffer | IDBArrayKey | IDBKeyRange
Returns Observable<undefined | string | number | Date | ArrayBufferView | ArrayBuffer | IDBArrayKey>
openCursor$
- openCursor$(query?: null | string | number | Date | ArrayBufferView | ArrayBuffer | IDBArrayKey | IDBKeyRange, direction?: "next" | "nextunique" | "prev" | "prevunique"): Observable<null | IDBCursorWithValue>
-
Parameters
-
Optional query: null | string | number | Date | ArrayBufferView | ArrayBuffer | IDBArrayKey | IDBKeyRange
-
Optional direction: "next" | "nextunique" | "prev" | "prevunique"
Returns Observable<null | IDBCursorWithValue>
openKeyCursor$
- openKeyCursor$(query?: null | string | number | Date | ArrayBufferView | ArrayBuffer | IDBArrayKey | IDBKeyRange, direction?: "next" | "nextunique" | "prev" | "prevunique"): Observable<null | IDBCursor>
-
Parameters
-
Optional query: null | string | number | Date | ArrayBufferView | ArrayBuffer | IDBArrayKey | IDBKeyRange
-
Optional direction: "next" | "nextunique" | "prev" | "prevunique"
Returns Observable<null | IDBCursor>
The ReactiveIDBObjectStore this index belongs to.