Questions tagged [dexie]

Dexie.js is a minimalistic wrapper for IndexedDB

Dexie.js is a minimalistic wrapper for IndexedDB.

349 questions
4
votes
2 answers

Dexie.js: get failures data records in bulkAdd() error catch

If I add a blob to my database using bulkAdd(), then if any key already exist then it throw error saying same. bulkAdd(): 127 of 127 operations failed. Errors: ConstraintError: Key already exists in the object store. Now I want, if any key already…
AtiqGauri
  • 1,483
  • 13
  • 26
4
votes
2 answers

How to read current db version number in dexie?

In Dexie, when you need to upgrade your schemas or table architectures, you use db.version(X) method. The library will then check whether the user's browser has a previous version cached and do the appropriate upgrade steps. But I cannot find how to…
timetowonder
  • 5,121
  • 5
  • 34
  • 48
4
votes
1 answer

Select specific properties for query result

I have the following query: db.asset.where("type").equals(type).each(e => { ... }); now e holds files (e.binary) as binary strings. in the each I only want to work on a specific set of properties but on not e.binary, since it slows down the app. Is…
Fabian
  • 748
  • 2
  • 11
  • 20
4
votes
2 answers

Is there a way to rebuild Dexie keys?

I had a working app that uses Dexie. After upgrading to iOS 10.3, lookups by key are not working. (This is actually an indexeddb problem, not Dexie per se, I'm sure.) I'm still in shock but I have been able to confirm that the data is there by…
Qoregexp
  • 41
  • 1
4
votes
1 answer

dexie - Table not part of transaction

I am working on a simple application to build a tree out of nodes. I have the following hooks setup so that when a node is deleted from a tree, all of the child nodes are deleted and also all associations for those nodes are deleted. I am using the…
4
votes
0 answers

Persist IndexedDB even after computer restart in Electron

I'm trying to use Dexie/indexedDB in an Angular 2 app that runs over Electron, the databases I created + data inserted persist after I restart the application, but if I restart the computer then all the data is erased. Is there anyway to persist the…
Ultranuke
  • 1,735
  • 2
  • 15
  • 21
4
votes
1 answer

DexieJS (indexedDB) chain multiple .where clauses

I'm using DexieJS to fetch data from an IndexedDB. I've done the following tests both with v. 1.1.0 and 1.2.0. It is working great for simple queries, but unfortunately I am unable to chain multiple where clauses. First, I've tried this var…
don
  • 4,113
  • 13
  • 45
  • 70
3
votes
2 answers

In Angular, why is my PrimeNG table re-rendering after updating a row's values in indexedDB?

I have a PrimeNG table that takes an array of objects fetched from Dexie as data source. In my component's ngOnInit, I fetch the data from Dexie this way: db.myTable.toArray().then( items => { this.items = items; }); I then bind the…
rvrsev
  • 166
  • 1
  • 10
3
votes
2 answers

Internal error opening backing store for indexedDB.open

I am getting this error logs in public environment, quite consistently for around 0.1% of the sessions. I am using Dexie. https://dexie.org/ class DexieDB extends Dexie { cacheData!: Table; private static instance: DexieDB; …
Anurag
  • 56
  • 1
  • 6
3
votes
1 answer

Dexie.js delete one item with id not working

Hi this my simple project js code example const deleteOneNote = (id) => { const db = openNoteDb(); db.notes.where('id').equals(id).delete(); } $(document).on("click", ".remove_note", function () { const id =…
Brain
  • 33
  • 3
3
votes
1 answer

How to sync database with remote database with Dexie

I making Notes PWA App that work offline and online. I am saving notes records on IndexedDB with Dexie.js. I am using Quasar as frontend and backend as Laravel 8. I want to sync IndexedDB Database with remote database. How can I do?
3
votes
1 answer

Retrieve value from IndexedDB using Dexie and Svelte

I don't understand how I can get a value from IndexedDB using Dexie. Database is all good in 'application' tab in inspect tool. Total newbie, so please be understanding. My db.js import Dexie from "dexie"; export const db = new…
tzachmost
  • 33
  • 4
3
votes
0 answers

Error using Dexie from browser extension content scripts

I'm facing an error when I run the Dexie Hello World from the content script of my firefox extension. The extension is: in typescript compiled using webpack + babbel runned using web-ext run. The previously linked example is declared in the…
3
votes
1 answer

Has anyone compared Dexie to localbase?

Has anyone used both localbase and Dexie that can compare the two? I am developing an application in Quasar/Vue/Electron, and using IndexedDB for my database. I've been using localbase but it seems fairly limited in what it can do. It seems Dexie…
Cynthia
  • 151
  • 1
  • 13
3
votes
1 answer

how to version multiple tables with dexie 3.0, when users may jump from any previous version to the latest?

After studying the Dexie documentation on versioning, I am unclear about some aspects of versioning using Dexie 3.0.1. Suppose I have table1 and table2 with only id as an index on each for version 1 of my db: db.version(1).stores({table1: "++id",…
David Burson
  • 2,947
  • 7
  • 32
  • 55
1
2
3
23 24