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

Can Dexie syncable be used with an api server vs directly with a database

I have seen the sample projects on your website for Dexie.Syncable such as sync-server and sync-client and they all seem to write to a datbase directly vs interacting with a web api. I am looking for a little help in where to get started beyond the…
dan
  • 2,857
  • 6
  • 34
  • 60
0
votes
1 answer

Dexie function return item after seaching

I have a simple Dexie table search function that I want to return the searched item after the searching code is actually run function ReturnItemFromTable() { db.table1 .where('field1') .equals('some value') .first(function(item) { …
0
votes
2 answers

Passing Dexie collection from variable

I have this code (Indexeddb/Dexie) db1.RestrictionsImport.where('idx').equals(n).toArray().then(function(x){...}) This works fine but I have an multitude of collections with "Restrictions" for which I have to perform the search(es). If I do…
Huqe Dato
  • 235
  • 1
  • 16
0
votes
1 answer

Dexie: where clause - cant get it to use a plain object containing criterias

I've been searching trough dexie docs and here on stack but i can't find anything related. I'm new to dexie and it's the end of my work day, probably it's something that I didn't understand correctly (ー_ー)!! This way it works: DB['t_menus_' +…
rantunes
  • 5
  • 3
0
votes
1 answer

Dexie Table Sort

I'm having trouble sorting a dexie table. It's likely I'm just not understanding a simple conceptual difference between dexie tables vs dexie collections. So my apologies for asking what's probably a simple question. I have this code that works…
0
votes
1 answer

Solution to access indexed database using Dexie from a server initialized in electron

We are building a desktop application using electron and react. We need to store the content for application in the indexed database in the electron application. The content is stored as if it's a client application similar to a web page. Our…
0
votes
0 answers

Rearranging Dexie Json-like sutructure

My question is focusing on the Dexie library, but I guess it could be valid for every json-like structurein javascript, so here it goes: I have multiple tables created on the local memory by an IndexedDB library (Dexie), which uses the following…
G. Weisz
  • 37
  • 1
  • 7
0
votes
1 answer

How to append to dexie entry using a rolling buffer (to store large entries without allocating GBs of memory)

I was redirected here after emailing the author of Dexie (David Fahlander). This is my question: Is there a way to append to an existing Dexie entry? I need to store things that are large in dexie, but I'd like to be able to fill large entries…
0
votes
0 answers

How to use Dexie to synchronize a MSSQL database using an Order Form

I am looking to create an HTML5 Online Order app using Dexie. The back-end database is MSSQL. I would like to connect to the SQL DB, load data from one or more tables into an IndexDB and provide a order form for the user to select items to order…
joey.coyle
  • 107
  • 1
  • 9
0
votes
1 answer

Using a Promise inside a Dexie iteration

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 asynchronous. I have a global…
Emptyless
  • 2,964
  • 3
  • 20
  • 30
0
votes
1 answer

Steps required to interract with IndexedDB via Dexie

Let's say I create a very simple datastore using the steps below: var db = new Dexie('MyDatabase'); db.version(1).stores({ friends: 'name, age' }); db.friends.add({ name: 'Camilla', age: 25 }); Now, let’s say the user closes their browser and…
0
votes
0 answers

Dexie.js - How to get an entity when mapping

I'm very new with Dexie.js and Promises, so, bear with me. How could I get an entity inside a Map function? I have the following method that's responsible to do a data source lookup within my IndexedDB. function MapData(data) { let mappedItems…
Dan
  • 1,518
  • 5
  • 20
  • 48
0
votes
1 answer

Dexie 2.0 beta - How does it work with async await?

How does the Dexie 2.0 beta work with async/await? I was reading through the source code but I am still confused how it is propagating zones without monkey patching any native functionality. Can someone give me a high level overview of how this…
user3692823
  • 341
  • 1
  • 11
0
votes
1 answer

How can I use the results of data produced by the ".each" method?

I use Dexie.js (an IndexedDb wapper). I've tried generating HTML like this: function getList(where){ var html = []; if($.isEmptyObject(where)) return; db.modules.where(where).each(function(item){ html.push('
zero
  • 3
  • 2
0
votes
1 answer

where({keypath:value, ...}) notation do not work

I'm using the official page example from Table.where() documentation page: db.friends.where({name: "David", age: 43}).first(friend => { console.log("Found David, 43: " + JSON.stringify(friend)); }).catch(error => { console.error(error.stack…
Higarian
  • 533
  • 5
  • 11