Questions tagged [dexie]

Dexie.js is a minimalistic wrapper for IndexedDB

Dexie.js is a minimalistic wrapper for IndexedDB.

349 questions
0
votes
1 answer

IndexedDB as a backend for a data-table web component

I am working on a data-table/grid web component that supports sorting, filtering, infinite scrolling etc. I am looking into replacing my existing data model with IndexedDB (using Dexie). My initial plan was to use a single db and have a "table" for…
Dogoku
  • 4,585
  • 3
  • 24
  • 34
0
votes
1 answer

indexeddb sorting index based on integer value

I am using Dexie var db = new Dexie('name'); db.version(4) .stores({ sentence: "&sentenceId, [sentence__authorId+sentenceChapter+sentenceNo], sentenceContent, headingContent, sentenceStarts, sentenceEnds" )}; and I need to get the result sorted…
ajith
  • 41
  • 2
  • 8
0
votes
2 answers

Solution for Dexie.js debugging code taking over on deferred promises

I'm using Dexie.js for handling indexed storage. However, it would take over exception handling on any process launched by the deferred promise. This made it very difficult to catch the bugs where they happened.
GeeWhizBang
  • 699
  • 4
  • 27
0
votes
2 answers

How should I calculate total sales from multiple tables in a IndexedDB database?

I'm trying to create a simple stock/sales application in JavaScript using Dexie.js. I'm not sure how to go about returning the Total Sales amount without writing awful recursive code that runs a query multiple times for just one product's total…
Codin Moldovanu
  • 90
  • 2
  • 10
0
votes
1 answer

Dexie: How to handle removing non-indexed props from database?

Say I have the following schema for indexed values: db.version(1).stores({friends: "++id,name"}); In addition, my friend object has a non-indexed prop called phoneNumber, so in IndexedDB each row has id, name, phoneNumber. If I decide later that…
ESWAT
  • 153
  • 10
0
votes
1 answer

React query a db on component mount?

For this example I am using React with Dexie.js. I have a code, zanzibar, that, when run, adds a list of objects from my IndexDB to the page. I have two current things I would like to add to this. First, there appears to be an issue with finding…
Jason Chen
  • 2,487
  • 5
  • 25
  • 44
0
votes
1 answer

Assigning a unique key id using React and Dexie?

The code below lacks a proper key prop. I am using Dexie.js for this example. Basically, I have an auto-incrementing key with ++id. Now, I would like to make sure that my var newFriend auto-increments this, but I am unsure of how to properly…
Jason Chen
  • 2,487
  • 5
  • 25
  • 44
0
votes
1 answer

Dexie: SubTransactionError

I am getting this error when running a transaction in Dexie: name: SubTransactionError message: table _ not included in parent transaction this only happens after I run this code: DeleteApiToken.then (() => { …
Nicola Pedretti
  • 4,831
  • 3
  • 36
  • 42
0
votes
2 answers

Dexie -- TypeError: Cannot set property 'onerror' of undefined(…)

I am using Dexie in my offline application, and when I try to insert new Data in my Indexeddb database I get this error: TypeError: Cannot set property 'onerror' of undefined(…) This is the code that seems to be throwing the error: InsertApiLogs:…
Nicola Pedretti
  • 4,831
  • 3
  • 36
  • 42
0
votes
1 answer

Synchronization between mysql and IndexedDB

I like to develop an Desktop App using nw.js (node-webkit) or Electron. I am looking for a solution to sync between IndexedDB and MySQL Server + PHP(Laravel) on the cloud via Restful API. PouchDB look good but that is out of option because it only…
I'll-Be-Back
  • 10,530
  • 37
  • 110
  • 213
0
votes
1 answer

Angular js two way data binding works only with apply

My angular app has/needs two way data binding. I fetch data from indexedDB using angular service, which is injected in a controller. I need the view to be updated after the fetch from db is made. var app =…
avck
  • 3,535
  • 3
  • 26
  • 38
0
votes
2 answers

Unit Testing PhantomJS Error: Can't find variable: Dexie

The issue I am trying to resolve is represented in the output displayed below: 15 06 2016 11:11:16.532:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/ 15 06 2016 11:11:16.532:INFO [launcher]: Starting browser PhantomJS 15 06…
0
votes
1 answer

Javascript objects like functions

Why can't I access the "inner" functions of this object? I feel like this has worked before. var OfflineStorage = (function () { function OfflineStorage() { var db = new Dexie("OfflineStorage"); db.version(1).stores({ …
Robin Dorbell
  • 1,569
  • 1
  • 13
  • 26
0
votes
2 answers

How to use dexie with typescript and requirejs?

I have a typescript project which is using requirejs to load jquery so I know the basic concept works. I am trying to get dexie set up and I just can't get it working. My require config looks like this: require.config({ baseUrl: '', paths:…
0
votes
3 answers

IndexedDB and large amount of inserts on Angular app

I'm struggling with amounts of 20-50k JSON object response from server which I should insert into our indexeddb datastore. Response is repeated with foreach and every single row is added with each. Calls with response less than 10k rows are working…
poptard
  • 61
  • 1
  • 10
1 2 3
23
24