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…
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…
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…
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…
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…
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…
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…
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…
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;
…
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 =…
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?
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…
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…
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…
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",…