In Dexie.js you can create a store with an auto-incrementing key      let db = new Dexie("nav_api");     db.version(1).stores({         jobs: '++id, json'     });   So to test, I created 14 objects in the db via db.jobs.put({json: ...
I am trying to automate running some queries with dexiejs but i can get them to work when i create a JavaScript function.  The queries simply don't run...  if i want to update i get:     Promise.js:840 Unhandled rejection: TypeError: Cannot read...
I have the following code where the modifying the db item base on an inner promise is not working.      $('input[type=checkbox][name=checklist]:checked').each(function()     {         var collection=db.items.where("name").equals(check...
Using Dexie I'm trying to add a new entry but I can only get it to add if I specify the id number. I want the id to be auto incremented as its the primary key, how do I achieve this?  This works   var db = new Dexie("user-database"); db.v...
I am working with React 16.3.2, Redux 4 and Dexie 2.0.3.  when I am going to store data second time it throws this error message.  Error: ConstraintError: Key already exists in the object store.     return dispatch => {         db.table         .a...
I am using dexie.js, which is an indexDB wrapper. Anywhoo, I have an array that is called from the user's local storage, and my function is supposed to iterate through every list item in the DB and show it. However, upon clicking on my Butane it...
This example uses Reactjs and Dexie.js. I have a CRUD app without the D, which I presently require. While you can enter and store new items into the database, I am not sure how to select each item that has been added and delete them. I understand tha...
I'm working on an application that is supposed to work online. I'm using IndexedDB as the local storage. But my problem is that I'm dealing with a Kendo grid and it's been called from a database on a server with an API. I want to know...
I am not really a Promise Ninja and I understand that I'm doing something wrong. However I cannot find some particular/simular problem to what I am having.   The problem: I use the Dexie.js wrapper for IndexedDB which is async...
I have a function executed when a page is loaded that calls four other functions:  // Initialise DB await initialiseDb                  ();  // Synchronise server's and local db await synchroniseClientAndServer    ();  // Use the languages from t...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.