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

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

From: Vivek Khurana <hiddenharmony@gmail.com>
Date: Sat, 8 May 2010 09:37:20 +0530
Message-ID: <j2y91bea30d1005072107ud5dc42a0u94306fac8fa6d7ef@mail.gmail.com>
To: Shawn Wilsher <sdwilsh@mozilla.com>
Cc: public-webapps WG <public-webapps@w3.org>
On Sat, May 8, 2010 at 1:02 AM, 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?

 I will agree with you. I think PUT operation should not be allowed to
overwrite in any circumstances. If you want to overwrite the data
object, use POST.

regards
Vivek

-- 
The hidden harmony is better than the obvious!!
Received on Monday, 10 May 2010 13:48:14 GMT

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