Questions tagged [dexie]

Dexie.js is a minimalistic wrapper for IndexedDB

Dexie.js is a minimalistic wrapper for IndexedDB.

349 questions
3
votes
1 answer

Dexie.js - Filtering by multiple keys using between and a compound index

I'm trying to use a compound index of 3 attributes to filter out a range of entries using the between() function. For example: db.version(1).stores ({ apps: "id,age,shoeSize,height,[age+shoeSize+height]" }); db.table …
Edan Lewis
  • 31
  • 4
3
votes
1 answer

With Dexie, how to update multiple objects with a non-primary index?

I want to do something like, myTable.update({ location: 'Paris'}, { location: '' } and have all the objects in myTable that have a location of 'Paris' get changed to have location set to empty string. location is not a primary key, so there may be…
David Burson
  • 2,947
  • 7
  • 32
  • 55
3
votes
1 answer

Error: indexedDB, error preparing Blob/File to be stored in object store

Im using DexieJS for using IndexedDB - However, on IOS Safari, im sometimes getting the error: Error: indexedDB, error preparing Blob/File to be stored in object store It's not consistently, which is pretty weird... Im trying to store "File Objects"…
nickycdk
  • 97
  • 1
  • 6
3
votes
1 answer

Updating table 'primary key' using dexie.js

I am using an dexie.js to interact with an IndexedDB table on a users local system when offline. This table will sync back to the server MariaDB table when the user is online. I am having an issue after the data has been pushed to the server, there…
3
votes
0 answers

Reading and writing to the same dexie js database from two different web workers in a web app

I am working on a web application (vue built with webpack) in which two different web workers are running. One is handling incoming data the other one is handling outgoing data. In both workers reading and writing operations need to get…
LongHike
  • 4,016
  • 4
  • 37
  • 76
3
votes
1 answer

Importing Dexie in Service Worker

is it possible to import Dexie in service worker? importScripts("https://unpkg.com/dexie@latest/dist/dexie.js"); resulted in : The script resource is behind a redirect, which is disallowed. I've to import it locally to the worker by saving the code…
Yaniv Peretz
  • 1,118
  • 2
  • 13
  • 22
3
votes
1 answer

Dexie: How to reference one dexie db across multiple browsers?

Scenario: User opens a Dexie webapp in Firefox. User writes some Dexie data and closes Firefox. User opens same webapp in Chrome. User is able to see the Dexie data that had been added previously in Firefox. Can Dexie do this? If Dexie always…
Tepuru Man
  • 31
  • 2
3
votes
1 answer

Where Clause on Compound Index Produces "not indexed" Error

I have the following table schema: db.version(1).stores({ sales: "[item_id+date],sales" }); Where the combination of date and item_id must be unique. How can I get all the records for a given item_id using the where clause (disregarding the…
Yoav Kadosh
  • 4,807
  • 4
  • 39
  • 56
3
votes
1 answer

In dexie(Wrapper for IndexedDB) how can I use 'LIKE' like in sql to search

I want to search some data stored in IndexedDb using dexie. I looked the doc. for anything like LIKE in sql for dexie. is there any function for this purpose ?
ajith
  • 41
  • 2
  • 8
3
votes
1 answer

Real-time synchronization MySql and IndexedDB

I have a parent-child relationship table in my database (tree system), and each child has a parent and each parent has some children. My back-end is PHP and my database is MySql, I get all rows of my table (categories) then insert all of them in…
Jhonsborg
  • 31
  • 3
3
votes
1 answer

IndexedDB - Dexie JS : Dynamically create stores

I'm working with indexedDB for local data storage, with Dexie.js which is pretty nice as a wrapper, especially because of the advanced queries. Actually, I would like to create to create several datastore by script, which seem complicated. To create…
Jeelig
  • 102
  • 2
  • 15
2
votes
1 answer

Dexie JS: very large IndexedDB but empty tables

I have an application that uses vanilla javascript to show an openlayers map, people tap on a location and can add pictures. I'm using Dexie JS to store the data between pages until the user is ready to send everything. After everyting is uploaded,…
kenhas
  • 77
  • 1
  • 8
2
votes
2 answers

How to track if dexie UseLiveQuery is finished

I want to display a loader while a UseLiveQuery is not finished and display a "not found component" if the UseLiveQuery has returned an empty array. Is there a simple way to do that? Thank you very much.
Omroboto
  • 23
  • 4
2
votes
0 answers

Slow UPSERT performance through dexie.js

I have an application where I try to save a user's favorites in the indexedDB through the use of the dexie.js wrapper. I have little experience with the indexedDB, but the performance I'm seeing seems to be... not very good. My table…
vixducis
  • 1,010
  • 1
  • 8
  • 22
2
votes
1 answer

Get key of value just saved in Dexie

I am saving a value to my Dexie (IndexedDB) database, using put(), and I immediately need to know what the key of that new entry is. How do I go about doing that? The below is my code. I wasn't able to find a solution searching with Google. …
Cynthia
  • 151
  • 1
  • 13
1 2
3
23 24