W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2010

Re: [IndexedDB] Changing the default overwrite behavior of Put

From: ben turner <bent.mozilla@gmail.com>
Date: Fri, 7 May 2010 14:12:34 -0700
Message-ID: <r2u21b1517c1005071412k179d2c44tf3fad4265f763527@mail.gmail.com>
To: public-webapps WG <public-webapps@w3.org>
I think that switching 'noOverwrite' from false to true is confusing.
I definitely vote to rename the parameter to 'overwrite' and and keep
the default as false.

-Ben

On Fri, May 7, 2010 at 12:32 PM, Shawn Wilsher <sdwilsh@mozilla.com> wrote:
> Hey all,
>
> Per the current spec [1], noOverwrite defaults to false for put operations
> on an object store.  Ben Turner and I have been discussing changing the
> default of put to not allow overwriting by default.  We feel this is better
> behavior because simply omitting the flag should not result in destroying
> data.  Putting my application developer hat on, I'd much rather have to be
> explicit about destroying existing data instead of having it happen on
> accident.  We could also change the parameter to just overwrite and have it
> default to false.
>
> What is everyone's thoughts on this?
>
> Cheers,
>
> Shawn
>
>
Received on Friday, 7 May 2010 21:13:06 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:38 GMT