Hello all,I am playing around with indexedDb and am finding that I cannot tell the version of the current DB.After calling openDatabase() the db.version property is always already set. I never see it blank after clearing out storage. or changing the db name to something random:var request = context.indexedDB.open("TESTDB");request.onsuccess = function(event) {var db = event.target.result;console.log(db.version) //1}If I pass an integer version as the second parameter to open() then db.version will reflect whatever I passed in.
I am using Chrome Version 24.0.1312.56 .I see the same behavior when I step through the code at http://www.html5rocks.com/en/tutorials/indexeddb/todo/How do I check the version so I know to use of setVesion or upgradeneeded to build stores?
Many thanks,- Ivo--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-html5/-/k_4Ev9e6YhwJ.
To post to this group, send email to chromiu...@chromium.org.
To unsubscribe from this group, send email to chromium-html...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-html5/?hl=en.
--
You received this message because you are subscribed to a topic in the Google Groups "Chromium HTML5" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-html5/0rfvwVdSlAs/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to chromium-html...@chromium.org.
To post to this group, send email to chromiu...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-html5/?hl=en.
For more options, visit https://groups.google.com/a/chromium.org/groups/opt_out.
I've struggeled with IndexedDB for more than a year. It's completely unusable unless you have a very simple use-case (static really simple schema).
Considering bugs are being fixed at glacial speed and even simple test-cases crash by simple bashing the reload button a few times (locking up the database completely), I believe there simply is no client side database like storage solution (localStorage does not cut it either, although that may at least be more stable).
I simply gave up trying to write browser based SPA applications; if it runs in the browser, it needs a server, and on phone/tablets you need to use the native solutions (sqlite on Android for instance).Thanks,Marius K.
On Monday, 20 May 2013 06:35:51 UTC+2, Aaron Shafovaloff wrote:OK, I'm back. This seems to be more fickle than I reported. Not hard to reproduce, but hard to find a concrete cause.
--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-html...@chromium.org.
It's definitely unfortunate that up until about 8 months ago, Chrome used the setVersion API from earlier versions of the IDB spec. That made cross-browser development difficult, and also meant that documentation out there was lacking. Have you taken a look since we've updated Chrome to match the latest version of the spec and the behavior in other browsers?
Absolutely not robust, crazy bugs, constantly changed API. From Chrome v24 to Chrome v26 there was a problem that really many users of this DB have the corrupted DB files because of some IndexedDB bug in v24, but in a way that actually not affect father operations. So actualy data was not affected. corruption was mainly in temporary files, which must be purged anyway. Yet in v26 developers decide to just wipe out such DBses completely and start from scratch!!!!!!!!!!
--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-html...@chromium.org.
On Tue, May 21, 2013 at 6:08 AM, Vladyslav Volovyk <omn...@gmail.com> wrote:
Absolutely not robust, crazy bugs, constantly changed API. From Chrome v24 to Chrome v26 there was a problem that really many users of this DB have the corrupted DB files because of some IndexedDB bug in v24, but in a way that actually not affect father operations. So actualy data was not affected. corruption was mainly in temporary files, which must be purged anyway. Yet in v26 developers decide to just wipe out such DBses completely and start from scratch!!!!!!!!!!Were any of these bugs reported?
IndexedDB is under very active development in chrome,
and there is a very active community here and on stackoverflow that can help you out. we try to be as responsive as possible in both bug reports and on this mailing list
There are some known issues when the disk is full, but otherwise, I don't think we're aware of the issues you describe. Can you be specific about "corruption was mainly in temporary files, which must be purged anyway"? its not clear to me if your users actually lost data or not?