- From: Jonas Sicking <jonas@sicking.cc>
- Date: Tue, 17 Aug 2010 08:18:13 -0700
- To: Jeremy Orlow <jorlow@chromium.org>
- Cc: Pablo Castro <Pablo.Castro@microsoft.com>, Mikeal Rogers <mikeal.rogers@gmail.com>, public-webapps WG <public-webapps@w3.org>
On Tue, Aug 17, 2010 at 4:12 AM, Jeremy Orlow <jorlow@chromium.org> wrote: >> >> > The alternative is to add a function within setVersion to set the >> >> > language >> >> > which actually seems less elegant. >> >> >> >> I don't understand what you mean by this. >> > >> > Have a setLanguage method on IDBDatabase that can only be called from >> > within >> > a setVersion transaction. In the same way removeObjectStore and company >> > can >> > only be called within a setVersion transaction. >> >> That would work. So effectively this function would modify all the >> data in all the objectStores and indexes such that it's now sorted >> according to the new collation. The 'success' event is fired after all >> data has been updated. Any requests made after the setLanguage call >> will see the modified data. >> >> Is that the idea? > > I'm not married to any of the particulars, but yeah that is the general > idea. Sounds good to me. / Jonas
Received on Tuesday, 17 August 2010 15:19:22 UTC