Dexie.js is a wrapper library for indexedDB - the standard database in the browser. http://dexie.org
Dexie solves three main issues with the native IndexedDB API:
- Ambivalent error handling
- Poor queries
- Code complexity
Dexie provides a neat database API with a well thought-through API design, robust error handling, extendability, change tracking awareness and extended KeyRange support (case insensitive search, set matches and OR operations).
npm install dexie
src
│
└───app
│ │
│ └───item
│ └───components
│ └───modals
│ └───services
│ │ controller.ts
│ │ database.ts
│ │ index.ts
│ │ interface.ts
│ │ item-routing.module.ts
│ │ item.module.ts
│ │ ...
│ app-routing.module.ts
│ app.component.css
│ app.component.html
│ app.component.spec.ts
│ app.component.ts
│ app.module.ts
│ ...
└───assets
│
│ ...