- From: Jonas Sicking <jonas@sicking.cc>
- Date: Fri, 24 Feb 2012 08:56:29 +0100
- To: Joćo Eiras <joaoe@opera.com>
- Cc: public-webapps@w3.org
req = indexedDB.open("mydb", 5); req.onupgradeneeded = function(e) { assert(e.target === req); var thetransaction = req.transaction; var thedb = req.result; doStuffWith(thetransaction, thedb); } req.onsuccess = function(e) { assert(e.target === req); assert(req.transaction === null); var thedb = req.result; alert("the database is now open"); } / Jonas On Thu, Feb 23, 2012 at 10:56 PM, Joćo Eiras <joaoe@opera.com> wrote: > >>> IDBDatabase.transaction accepts either an array of strings or string as >>> first argument, which are the name of the object stores. What should >>> be used for the very first transaction of an empty database with no >>> object stores ? Empty array ? >> >> >> When a database is created a VERSION_CHANGE transaction is >> automatically created. So there is no need to call >> IDBDatabase.transaction. Not entirely sure I understand the question >> here. >> > > Then how can one get a reference to that IDBTransaction object ? >
Received on Friday, 24 February 2012 07:57:31 UTC