1.0.3 • Published 2 years ago
rx-storage-indexeddb v1.0.3
RxStorage for Indexeddb
Background
This storage is build to be used by RxDB. It uses native Indexeddb Indexes, idb
module as thin wrapper around Indexeddb. We lended logic from pouchdb-find to plan and execute queries and aim to support the same set of operators. Operators like regex are being process in-memory and cannot take advantage of indexes.
Features
- RxAttachments
- RxLocalDocs
Compatibility
RxDB | RxStorage Indexeddb |
---|---|
11.x | 1.x |
Installation
npm install rx-storage-indexeddb
Usage
import { getRxIdbStorage } from 'rx-storage-indexeddb'
import { createRxDatabase } from 'rxdb'
createRxDatabase<CollectionsOfDatabase>({
name: 'mydb',
storage: getRxIdbStorage(),
... more config
})