How to update an IndexedDB ObjectStore Name?

Question:

One way to do it is to create a new objectStore with the new name and copy the data of the original over, but is there a way to modify the name of the existing objectStore?

Answer:

I took another look at the spec, and it does not look like there is a way to modify the name of an existing object store. Your idea of creating a new store, copying over the objects, and deleting the old store, is probably the only and best way.

Related:

indexeddb
I have looked and looked everywhere but IndexedDb is not very famous it turns out. I have an objectstore called orders with an auto-generated key with each order's structure like: {"dealername":"something","dealerid":num,"totalbill":num,"items":[{},{}]} Now as the objectstore orders can have multiple orders with the same dealerid, how can I get all orders...

couchdb,indexeddb,pouchdb
my problem is to sync between pouch and couchDB. I will manage to get my documents from couchDb and check in the pouch if there is already an existing document. So, if we have a conflict I want so solve the conflict on the client-side. But I don't know how...

javascript,indexeddb
Hello in my app I have at the moment (still under development) an indexed-db with 400 records in a single collection. The indexes are: id, vendor, price, model and subCategoryID. Here is a sample of a record: { id: 199, bundles: [235,548,983,918], categoryID:0 , subCategoryID: 7, imageUrl : "/mock/mobiles/Alcatel-One-Touch-Pop-S7.png" model:...

javascript,nosql,indexeddb,persistent-object-store
Say I have an object store, which was created like this: IDBDatabase.createObjectStore(Name, {autoIncrement: true }); Now, say I retrieve an object from that object store using an index to look it up. Is there a way that I can retrieve the out-of-line key associated with the object so I can...

sql-server,html5,browser,local-storage,indexeddb
I am looking at making a LOB html5 web application. The main part we are trying to accomplish is to make the application offline capable. This will mean taking a large chunk of SQL data from the server and storing it in the browser. This will need to be living...

javascript,html,google-chrome-app,indexeddb,pouchdb
I'm making a Chrome App and using PouchDB(all my first time). Got the IndexedDB running on the Resources panel of the DevTools. The problem is the adding and updating of data to PouchDB. It's not working. Here's the code: (app_jr.js) var saveregister, JrRegisterObj, pn; JrRegisterObj = function (databasename, remoteorigin){ 'use...

javascript,indexeddb,composite-key
I have an object store which contains 3 indices, which are name,value and userid. How can I create a composite unique index from name and userid? This is what I tend to do: var objectStore = database.createObjectStore('data',{keyPath : ['name','userid']}); objectStore.createIndex('name','name'); objectStore.createIndex('value','value'); objectStore.createIndex('userid','userid'); Is keyPath good enough? Do I need to...

jquery,html5,local-storage,indexeddb,offline-caching
Query Description:- This question is particularly with the issues that I am facing in reading the indexeddb data in the Ipad Safari 8.1. I am able to create Indexeddb and insert the data into it. But unable to read the same in Ipad safari. Below is the code format that...

javascript,firefox,indexeddb
I have to check the IndexedDB availability for the Firefox browser only. Currently I do the trick with this : var IDB_SUPPORTED = 'indexedDB' in window; Simple. But if I disable IndexedDB in about:config (with the dom.indexedDB.enabled parameter), IDB_SUPPORTED is still true. How can I check the real availability of...

safari,cross-browser,indexeddb,pouchdb
I'm trying to execute my program cross-browser and I found that Apple's Safari for windows ends with version 5.1.7! But when I searched all over the internet to acquire Safari 8, I found that they had no support for windows. I very badly want Safari 8 for windows since it...

javascript,indexeddb
Good day, all I read on this page [Using IndexedDB]: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Using_IndexedDB that browser will prompt user to give permission to create indexedDB, and the user may deny permission. See quote below: The most likely problem is that the user decided not to give your web app permission to create a...

javascript,html,javascript-events,google-chrome-extension,indexeddb
I am writing a chrome extension that utilizes IndexedDB to store some information client side in an IDBObjectStore within an IDBDatabase. The nature of the data is such that I need my users to be able to modify the object store at their whim. (add new objects modify existing ones...

javascript,jquery,indexeddb
I'm trying to implement indexedDB. For that I need to use $.Deferred to get the status of database creation. But the problem is, Differed is not working as expected. Here is the fiddle, you can find the process in the console. And here is the code: $(function($) { var table...

javascript,html,google-chrome,indexeddb,persistent-object-store
I am trying to wrap my head around IndexedDB. I created an object store that uses a key-generator with no key-path. var objectStore = db.createObjectStore("domains", {autoIncrement: true }); objectStore.createIndex("domain", "domain", { unique: true, multiEntry: true }); In order to access my records, I created an index that references my object...

indexeddb
I am storing an object in IndexedDB, in the following format. var _object ={ stud1: { name: 'ABC', surName: 'PQR' }, stud2: { name: 'zxc', surName: 'ppp' } }; How do I update the object, so that the stud1 key would be removed?...

javascript,jquery,sqlite,indexeddb,jaydata
I'm trying to use JayData using the sqLite provider via myDB = new MyDatabase({ provider: 'sqLite' , databaseName: 'MyDB', version: 1 }); But when It runs this line it echos to console the following message twice "Provider fallback failed!" I have tried manually loading the sqLite provider and not loading...

javascript,jquery,indexeddb,jquery-deferred,canjs
I'm using CanJs and I'm learning jquery deferred but I have a problem. I created a controller as sort of Singleton to manage data in IndexedDb. First of all, I created an openDb function like this: openDbDeferred: null, openDb: function (dbName, dbVersion) { console.log('Open DB...'); var openDbDeferred = this.openDbDeferred; if...