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.
indexeddb
2,379
questions
0
votes
1
answer
69
views
gnucobol failing to open/create an indexed file
Following a course in COBOL, I'm trying to create an indexed file.
Many times the file reading chapter precedes the writing one, so I had no file to read, and an indexed file is not just a file.
...
0
votes
0
answers
14
views
Blazor PWA with shared database between all uses in offline mode
A requirement for our Blazor PWA application is all data persisted on client computer must be shared between all users on that machine.
Is there a way to share data between all uses on client machine ...
0
votes
1
answer
34
views
IndexedDB: Opening a new DB but Promise gets stuck
Currently, I'm designing IndexedDB functionality for my company. I have built a solid class and all of my unit tests work. However, when I'm attempting to open a new database for a client, the state ...
0
votes
1
answer
29
views
Indexeddb - records are added successfully, except index is missing data
Using indexeddb and idb promise library.
I have this objectstore that I create called storeMappings along with the index inUse. I then populate the store with some records.
Everything works as it ...
-1
votes
0
answers
11
views
Does indexedDB release space from a deleted record back to OS? Attempting to keep db from growing to large
For deleted individual records (as a transaction) in a objectstore in indexedDB (not the objectstore itself), is space automatically released back to the OS? Or does it keep the space even though it ...
1
vote
0
answers
23
views
Dexie returns duplicated object after manually deleting the database and re-populate it. It only happens when you do not refresh the page
I have a feature on my website to allow users to delete Dexie database manually. I just found that after the database is deleted and gets re-populated without refreshing the page, it will return ...
1
vote
0
answers
28
views
LevelJS when in browser with IndexedDB as a storage shows arrays of bytes instead of JSON or readable object representation
I instantiate and populate the LevelJS abstraction as follows:
import * as level from 'level';
const defDb = new level.Level('def', {valueEncoding: 'json'});
defDb.put(keyObj, valueObj);
and what I ...
0
votes
1
answer
17
views
How to delete an Index in an existing IndexedDB
When I try to delete a IndexedDB Index in onupgradeneeded, I get one of 2 errors depending on whether I include the 1st statement below or not.
With the 1st statement, I get an exception saying "...
1
vote
2
answers
129
views
Why does Dexie give me "The operation failed because the requested database object could not be found"?
I have the following very basic Dexie app:
$(document).ready(function(){
let demo = { ...
0
votes
0
answers
15
views
How to insert records in Indexed DB Database on clicking on the button
I am unable to insert record in Databased created through IndexedDB Sample code
1
vote
2
answers
51
views
Create multiple stores in IndexedDB and get notification when all are available
I am new to IndexedDB and trying to create a database with many stores in it.
After creating the stores my app can go ahead and add records to it, but I need to be sure that all stores have been ...
0
votes
1
answer
54
views
Uncaught (in promise) DOMException: Uncaught exception in event handler with indexedDB
I am using vue 3 with indexedDB through this library: 'https://github.com/jakearchibald/idb'
In my component:
const [dataA, dataB] = await Promise.all([
getDataA(),
getDataB(),
])
In my ...
1
vote
1
answer
114
views
Does navigator.storage.persist() only protect against data removal in the case of storage pressure?
According to the MDN docs browser-stored data can be evicted in three cases:
Storage pressure eviction
Browser maximum storage exceeded eviction
Proactive eviction
For the first case - "Storage ...
2
votes
1
answer
38
views
Typescript: pretents foo is not in type bar, while it is: how to debug
When I do tx.idbtrans, I have an error:
Error: Property 'idbtrans' does not exist on type 'Transaction & { fileInfo: EntityTable<FileInfo, "id">; }'.
await db.transaction(&...
0
votes
0
answers
32
views
How to save files ( 200 mb size ) in indexdb or in client side in react app
Developing document processing application in react in which need to download the word or pdf in client side and process that file . To avoid roundtrip to server i am trying to save the document in ...