Re: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-24 Thread Jonas Sicking
On Mon, Oct 24, 2011 at 5:28 PM, Israel Hilerio wrote: > On Monday, October 17, 2011 9:14 PM, Cameron McCormack wrote: >> On 17/10/11 7:19 PM, Jonas Sicking wrote: >> > I sort of like the short-cut since it seems like a very common case >> > for web developers to want to create a transaction which

RE: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-24 Thread Israel Hilerio
On Monday, October 17, 2011 9:14 PM, Cameron McCormack wrote: > On 17/10/11 7:19 PM, Jonas Sicking wrote: > > I sort of like the short-cut since it seems like a very common case > > for web developers to want to create a transaction which only uses a > > single objectStore. > > > > But I agree it's

Re: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-17 Thread Cameron McCormack
On 17/10/11 7:19 PM, Jonas Sicking wrote: I sort of like the short-cut since it seems like a very common case for web developers to want to create a transaction which only uses a single objectStore. But I agree it's not a huge win for developers as far as typing goes (two characters). I *think*

Re: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-17 Thread Jonas Sicking
On Mon, Oct 17, 2011 at 3:15 PM, Joshua Bell wrote: > On Fri, Oct 14, 2011 at 4:02 PM, Israel Hilerio > wrote: >> >> On Friday, October 14, 2011 3:57 PM, Jonas Sicking wrote: >> > On Fri, Oct 14, 2011 at 2:57 PM, Israel Hilerio >> > wrote: >> > > On Friday, October 14, 2011 2:43 PM, Jonas Sickin

Re: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-17 Thread Joshua Bell
On Fri, Oct 14, 2011 at 4:02 PM, Israel Hilerio wrote: > On Friday, October 14, 2011 3:57 PM, Jonas Sicking wrote: > > On Fri, Oct 14, 2011 at 2:57 PM, Israel Hilerio > > wrote: > > > On Friday, October 14, 2011 2:43 PM, Jonas Sicking wrote: > > >> On Fri, Oct 14, 2011 at 2:27 PM, Israel Hilerio

RE: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-14 Thread Israel Hilerio
On Friday, October 14, 2011 3:57 PM, Jonas Sicking wrote: > On Fri, Oct 14, 2011 at 2:57 PM, Israel Hilerio > wrote: > > On Friday, October 14, 2011 2:43 PM, Jonas Sicking wrote: > >> On Fri, Oct 14, 2011 at 2:27 PM, Israel Hilerio > >> > >> wrote: > >> > On Monday, October 10, 2011 10:15 AM, Isr

Re: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-14 Thread Jonas Sicking
On Fri, Oct 14, 2011 at 2:57 PM, Israel Hilerio wrote: > On Friday, October 14, 2011 2:43 PM, Jonas Sicking wrote: >> On Fri, Oct 14, 2011 at 2:27 PM, Israel Hilerio >> wrote: >> > On Monday, October 10, 2011 10:15 AM, Israel Hilerio wrote: >> >> On Monday, October 10, 2011 9:46 AM, Jonas Sicking

RE: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-14 Thread Israel Hilerio
On Friday, October 14, 2011 2:43 PM, Jonas Sicking wrote: > On Fri, Oct 14, 2011 at 2:27 PM, Israel Hilerio > wrote: > > On Monday, October 10, 2011 10:15 AM, Israel Hilerio wrote: > >> On Monday, October 10, 2011 9:46 AM, Jonas Sicking wrote: > >> > On Fri, Oct 7, 2011 at 11:51 AM, Israel Hilerio

Re: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-14 Thread Jonas Sicking
On Fri, Oct 14, 2011 at 2:27 PM, Israel Hilerio wrote: > On Monday, October 10, 2011 10:15 AM, Israel Hilerio wrote: >> On Monday, October 10, 2011 9:46 AM, Jonas Sicking wrote: >> > On Fri, Oct 7, 2011 at 11:51 AM, Israel Hilerio >> > >> > wrote: >> > > On Thursday, October 06, 2011 5:44 PM, Jon

RE: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-14 Thread Israel Hilerio
On Monday, October 10, 2011 10:15 AM, Israel Hilerio wrote: > On Monday, October 10, 2011 9:46 AM, Jonas Sicking wrote: > > On Fri, Oct 7, 2011 at 11:51 AM, Israel Hilerio > > > > wrote: > > > On Thursday, October 06, 2011 5:44 PM, Jonas Sicking wrote: > > >> Hi All, > > >> > > >> In both the Fire

RE: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-10 Thread Israel Hilerio
On Monday, October 10, 2011 9:46 AM, Jonas Sicking wrote: > On Fri, Oct 7, 2011 at 11:51 AM, Israel Hilerio > wrote: > > On Thursday, October 06, 2011 5:44 PM, Jonas Sicking wrote: > >> Hi All, > >> > >> In both the Firefox and the Chrome implementation you can pass an > >> empty array to IDBDatab

Re: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-10 Thread Jonas Sicking
On Mon, Oct 10, 2011 at 7:44 AM, ben turner wrote: > So it sounds like everyone agrees that accepting an empty array is not > desired... Can we just make that case throw an exception rather than > generating an empty transaction (which will then throw when it is > used)? I'm fine either way. / J

Re: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-10 Thread Jonas Sicking
On Fri, Oct 7, 2011 at 11:51 AM, Israel Hilerio wrote: > On Thursday, October 06, 2011 5:44 PM, Jonas Sicking wrote: >> Hi All, >> >> In both the Firefox and the Chrome implementation you can pass an empty >> array to IDBDatabase.transaction in order to create a transaction which has >> a scope th

Re: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-10 Thread ben turner
So it sounds like everyone agrees that accepting an empty array is not desired... Can we just make that case throw an exception rather than generating an empty transaction (which will then throw when it is used)? -Ben Turner

Re: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-10 Thread Hans Wennborg
On Fri, Oct 7, 2011 at 1:43 AM, Jonas Sicking wrote: > Hi All, > > In both the Firefox and the Chrome implementation you can pass an > empty array to IDBDatabase.transaction in order to create a > transaction which has a scope that covers all objectStores in the > database.; > > This, however, is

Re: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-07 Thread Jonas Sicking
On Fri, Oct 7, 2011 at 11:51 AM, Israel Hilerio wrote: > On Thursday, October 06, 2011 5:44 PM, Jonas Sicking wrote: >> Hi All, >> >> In both the Firefox and the Chrome implementation you can pass an empty >> array to IDBDatabase.transaction in order to create a transaction which has >> a scope th

RE: [IndexedDB] Passing an empty array to IDBDatabase.transaction

2011-10-07 Thread Israel Hilerio
On Thursday, October 06, 2011 5:44 PM, Jonas Sicking wrote: > Hi All, > > In both the Firefox and the Chrome implementation you can pass an empty > array to IDBDatabase.transaction in order to create a transaction which has > a scope that covers all objectStores in the database. I.e. you can do >