Questions tagged [indexeddb]

indexedDB provides a way to store data in the browser using Javascript. Unlike relational databases, indexedDB uses a key-value store that is conceptually similar to HTML5's local storage. However, indexedDB is better than local storage for storing large amounts of data and for querying data more quickly. indexedDB is supported in IE, Chrome, Firefox, and Microsoft Edge, although support for specific features varies.

Filter by
Sorted by
Tagged with
0 votes
1 answer
59 views

Uncaught (in promise) TypeError: window.indexedDB.databases is not a function

First time attempting this sort of function and I've tried numerous approaches, but can't figure out what I'm doing incorrectly. I always get an uncaught error... why? Specifically, I get the ...
NickO's user avatar
  • 3
0 votes
0 answers
17 views

in dexie.js, how do i define and query field of type set?

here is my typescript definion: interface MyBlogPost{ tx:string labels: Set<number> } Basicly a blog post with text and mutiple lables of type number. I have many of those that i need to ...
yigal's user avatar
  • 4,065
1 vote
1 answer
16 views

How to resolve 'DataCloneError' in Angular App using RxDb when putting a File in 'IDBObjectStore'?

I'm currently facing an issue in my Angular application that uses RxDb for data storage. The error I'm encountering is: main.4e29907b55c8d8bf.js:1 ERROR Error: Uncaught (in promise): DataCloneError: ...
aren talb's user avatar
0 votes
1 answer
30 views

Write buffer is failing for large size dexie

I am trying to store parquet file data as buffer in indexeddb, but is failing with no error logged the file size is around 430mb const db = new Dexie('database'); db.version(1).stores({ datasets: ...
rambo's user avatar
  • 3
-1 votes
1 answer
38 views

When nesting in JS-"while loop" variable is not defined anymore

My JS-script checks, if the database has values. if it does not it fills the database. When triggered again the values from the database are displayed on the page. This works when I run te script ...
Corbinian's user avatar
1 vote
3 answers
64 views

Error when declaring a js variable/ Object (Uncaught DOMException)

My script runs into the error: Uncaught DOMException: An attempt was made to use an object that is not, or is no longer, usable The script should check, if the database is filled. If not fill the ...
Corbinian's user avatar
0 votes
0 answers
35 views

Failing to declare Var in global scope

I want to change entries of an indexedDB. So having values in an inputfield and submitting them to an existing db entry, and later retrieving them before editing them again. Right now the script wont ...
Corbinian's user avatar
0 votes
0 answers
25 views

How to debug and view IndexedDB Usage for a Website in Safari DevTools

I'm working on a PWA and need to monitor the storage usage for my website, including resources cached using the "Offline Cache API." I'm using Safari as my browser, and I'm having difficulty ...
Alex Borsody's user avatar
  • 1,918
1 vote
0 answers
31 views

Javascript CRUD with local file and no server

I'm trying to build a small "webapp", that should run only in a browser, with no access to internet or a server. It's a small program I am going to use at my job, where I should store ...
RedHawkDK's user avatar
  • 129
0 votes
0 answers
13 views

LevelDB - Browser-Level: Any way to create one IndexDB database and several object storage under it trough the API?

I am exploring the LevelDB abstract API, I like the idea to write one code for both the browsers and the server-side Node. The question is, is there a way to have a cleaner IndexedDB structure, if my ...
fedd's user avatar
  • 880
-1 votes
0 answers
53 views

Cache vs IndexedDB

If at the end I want to make some fake endpoints with staic files (trouh service worker) self.addEventListener("fetch", function(e) { /* ... */ }) is there any real difference betwin ...
vanilla's user avatar
  • 43
0 votes
0 answers
9 views

Recommended resources for learning Service Workers and IndexedDB in Angular

I'm an Angular developer with some experience, and I'm looking to learn more about Service Workers and IndexedDB to enhance my web app's offline capabilities. I've done some initial research, but I'm ...
aren talb's user avatar
0 votes
0 answers
33 views

Getting an error when adding a value to indexDB

I am getting the following error when I am trying to add a value to an IndexedDB key. The object I am adding is a nested object, but I think I have a flow error. I am using React with TypeScript. > ...
Richardson's user avatar
  • 1,962
0 votes
2 answers
51 views

Repair an indexedDB

Is there a way to guarantee the existence of object stores in an indexedDB without changing the version number? Context: One of my users has an indexedDB set to the same version as everyone else, but ...
Craig's user avatar
  • 8,143
0 votes
0 answers
20 views

IndexedDb unit test using jest in javascript

`how to mock indexedDb in jest unit test ?I m new to jest testing and trying to to mock it. Here is my indexedDb code. its getting data from db and have functionality to create data and deletes data ...
neha kannaujia's user avatar
0 votes
1 answer
19 views

Disable IndexedDB for Forge viewer

Is it possible to disable IndexedDB when initialising the viewer. I have seen an option that suggest to pass it as query parameter but would it be possible to do it via the viewer initialiser function?...
piede's user avatar
  • 51
1 vote
0 answers
55 views

Indexeddb search on multiple columns using mysql LIKE

I am developing a PWA and I have a database that I would like to query like so: SELECT * FROM plants WHERE (plant_genus LIKE 'Ab%') AND (plant_species LIKE 'pr%') Index is defined as such: ...
Luk's user avatar
  • 13
0 votes
1 answer
27 views

File loaded from file handle stored in indexedDB does not update when file is changed and page is reloaded

Using the approach presented here: https://stackoverflow.com/a/65938910/3825996 I have created a webpage where you can drop a file anywhere and the content will be shown. After dropping, the handle of ...
Mircode's user avatar
  • 476
0 votes
0 answers
61 views

Losing a Webapp's Stored Data Completely on iOS15 and iOS16

Our app is a hybrid app, using WKWebView.We seem to lose stored data on both localStorage and IndexedDB on iOS devices.About 100 of 25000 unique users are affected and it seems that some devices lose ...
armin's user avatar
  • 1
0 votes
0 answers
23 views

ngx-indexed-db Getting error message. How to resolve?

I am new to indexedDb. The concepts of "in-line" and "out-of-line" keys are still fuzzy to me. I am trying to load the indexedDb with data that already has an 'id' value, so I don'...
Bruce Wilcox's user avatar
0 votes
0 answers
24 views

Blobs and Files retrieved from Indexeddb on IOS are empty

I want to store images in IndexedDB, and I am using Dexie for it. When I store an image in IndexedDB and retrieve it immediately afterward, I can display the image. However, when I store it, then ...
Milamber's user avatar
0 votes
0 answers
24 views

how to view and edit indexeddb database

how can I open sqlite database resides locally on my drive using indexeddb. or is there a way or tool to open and edit indexeddb when I create it using javascript code because I need to copy more ...
mohamed's user avatar
0 votes
0 answers
38 views

indexeddb (await async) Needed without .then()

when i try to change a cordova app from using to indexeddb I create similar function for localStorage Failed to set await async in the function below without then()!... is it possible? In the TESTING ...
Walid's user avatar
  • 1
0 votes
0 answers
26 views

Deleting a indexDB database in firefox

I'm having a bit of hard time totally deleting an unwanted indexDB database. My workflow is I press a submit button and a check is done for a stored key in the DB. The problem I have if user ...
Alan's user avatar
  • 1,137
0 votes
0 answers
22 views

is it possible to build a spatial database using Dexie Db?

I'm working on a web-based spatial data builder app designed to handle large datasets in real-time. Given the memory constraints of web applications, I need to efficiently manage the data being used. ...
lord_drgical's user avatar
0 votes
0 answers
28 views

IndexedDB search a word from a middle of record values in table

I'm using indexed-db with dexie.js in Angular 11 project. I want to do search like if a word matches in a middle of email or full_name field's value then I want those records. I got IndexedDB Fuzzy ...
Axel Blaz's user avatar
0 votes
0 answers
52 views

Upgrading an indexeddb which is shared by a PWA and its service worker

I have a PWA which uses indexeddb. (Actually the promise-aware "idb" layer on indexeddb). The indexeddb component is for use offline, so that idb's OpenDB command can happen offline. The ...
Steve Bradshaw's user avatar
0 votes
1 answer
53 views

One of the specified object stores was not found

HTML: <!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="../css/create-card.css"> <meta charset="UTF-8"> ...
Sisifos496's user avatar
0 votes
0 answers
24 views

Duplicate function execution with modules in JS

I have a two files: main.js and functions.mjs In HTML write the call: <script type="module" src="./src/modules/qr/main.js<?php echo "?v=" . $version; ?>"></...
cisco horux's user avatar
0 votes
1 answer
25 views

IndexedDB how to make method for transaction

I want to make a class method for transactions and get an error when I try to get an objectstore to work with it: Uncaught TypeError: transaction.objectStore is not a function at IndexedDB....
808A's user avatar
  • 1
-1 votes
1 answer
39 views

adding Service Worker and IndexedDB types to the eslint config

ESLint complains when I'm using types like ServiceWorkerGlobalScope, FetchEvent, IDBIndexParameters, IDBTransactionMode .,etc to the typescript files while adding PWA setup for my application.
5war00p's user avatar
  • 378
0 votes
1 answer
53 views

Downgrade/rollback IndexedDB?

I'm facing a situation where I may need to rollback my web app to a previous version because of a bug in the new version that will take some time to be fixed. I know IDB supports the upgradeneeded ...
Fez Vrasta's user avatar
  • 14.1k
0 votes
1 answer
46 views

How to update an object of an array in indexedDB?

For example I have an array of objects: const arrayOfPersons = [ { name: 'Alex', ssn: 123, children: [ { name: 'Tom', yearOfBirth: '2023', isHappy: true }, { name: 'Emma', ...
Alex's user avatar
  • 3
0 votes
1 answer
33 views

why is this IndexDB not recognizing my totalMoney object Store

I am new to Index DB, so this might be a simple fix, but I can't seem to find any fix for it in my code. I am using live server to display it, and the problem I'm facing is that it is supposed to ...
Time2Payyy's user avatar
0 votes
0 answers
10 views

partiQL statement(where pk in [pk1, pk2]) into DynamoDBQueryExpression

I've been searching ways to query multiple related items based on GSI. Unfortunately batchLoad doesn't work with GSI that I'm looking to use DynamoDBQueryExpression for specific query type. According ...
ty kwon's user avatar
0 votes
1 answer
63 views

Get number of records saved in Indexed DB using Dexie Js

I am new to Angular and JS. Right now I am writing code to save data to Indexed db and I want to show number of records which are pending (in indexed db) on navigation bar, I am not able to get the ...
Sarfaraz Ansari's user avatar
0 votes
0 answers
15 views

IndexedDB : Host not figured out for

while trying to extract data from IndexedDB on command line, I hit the error below; kalou@shinwey pwd /Users/kalou/Library/Application Support/IPFS Desktop/IndexedDB/webui_-_0.indexeddb.leveldb ...
kalou.net's user avatar
  • 446
0 votes
0 answers
62 views

Creating a PWA for GeoGebra Applets so that they work offline without needing internet connection

I want to build a pwa website that will host offline geogebra applets without need the user to have geogebra installed. I have already built a working local website but it needs internet for the ...
GeniusQQT's user avatar
0 votes
0 answers
26 views

Does anything prevent a website from filling the user's hard drive using IndexedDB?

I have tested IndexedDB for storing large amounts of data in a web application lately. Based on my testing in various browsers on various devices and operating systems, it is very easy to store ...
Mr. Eivind's user avatar
0 votes
2 answers
33 views

IndexedDB onsuccess/onfailure event listener: why assign it after, not before, the open action?

For example let db; // Let us open our database const DBOpenRequest = window.indexedDB.open("toDoList", 4); // these event handlers act on the database being opened. DBOpenRequest.onerror =...
Name Null's user avatar
  • 400
0 votes
1 answer
56 views

How to fill a DateTime column in indexed db using JsStore

Here is my table : { name : "TEST", columns : { K_A : {dataType : "string"}, DT_VAL : {dataType : "date_time"}, DT_SENT : {dataType : "date_time"...
user2244705's user avatar
1 vote
2 answers
71 views

What is the difference between window.indexedDB.open() and indexedDB.open()? [duplicate]

I see that some people use this way const request = indexedDB.open('test', 1); and some others use this one const request = window.indexedDB.open('test', 1);. Could you please tell me what is the ...
tarantadu97's user avatar
0 votes
0 answers
40 views

Dexie IndexedDB Combine multiple Where with anyOf and toArray

I have a Dexie/IndexedDB query where I need two selection criteria. I want to know if the fk_dog is equals any value in an array, this works fine: const children = await theTables.runTable ...
Cynthia's user avatar
  • 161
0 votes
1 answer
127 views

Can we have index on indexedDb using dart in flutter web?

I have tried implementing Hive for flutter web, but found out that it doesn't provide adding indexes. The underlying indexedDb provided adding index but Hive doesn't provide (at least I couldn't find ...
Vishnu's user avatar
  • 2,155
0 votes
1 answer
43 views

Type error when dispatch in React component + typescript

I'm getting a type error dispatch(createNote(data)) on handleSubmit But if you close the error on the page and submit the data from the form, then the data is saved successfully in indexeddb Error: **...
Денис Матерн's user avatar
0 votes
2 answers
27 views

Ionic Application hang code executioon on Back Button press

I have a application using ionic + react with a page that a user can upload a image from camera or gallery in that page and i save the imagem as binary on the database (indexed db using dexie) so far ...
vinicius gati's user avatar
0 votes
1 answer
77 views

How do I delete a range of indexeddb keys?

I want to delete a range of keys that begin with tracklist/RANDOM_STRING and 'songBook/RANDOM_String'. I tried achieving it with IDBKeyRange but I can't really wrap my head around how they work. I ...
Skip's user avatar
  • 349
0 votes
0 answers
25 views

file object from indexeddb is killing my JS fetch request

after researching the whole WWW, I am at the point of posting my question here. I develop a small web app to enable offline file storage like images with IndexedDB. Works like a charme so far until I ...
Martin's user avatar
  • 1
2 votes
1 answer
141 views

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 ...
kenhas's user avatar
  • 77
1 vote
1 answer
73 views

How to track changes in indexedDb?

I continued to search, and I heard that IndexedDb does not have an observer. So how can I track the change value? Is it impossible at all? I am currently using IndexedDb using idb-keyval. Do you have ...
Chebread's user avatar

1
2 3 4 5
48