<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22130</bug_id>
          
          <creation_ts>2013-05-22 03:28:44 +0000</creation_ts>
          <short_desc>Modification for IDBObjectStore&apos;s clear and delete method</short_desc>
          <delta_ts>2015-08-10 20:28:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Indexed Database API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kyaw Tun">kyawtun</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>art.barstow</cc>
    
    <cc>jsbell</cc>
    
    <cc>kyawtun</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88046</commentid>
    <comment_count>0</comment_count>
    <who name="Kyaw Tun">kyawtun</who>
    <bug_when>2013-05-22 03:28:44 +0000</bug_when>
    <thetext>Currently attention delete and clear method in object store are same. The only different is delete take an argument of key or key range, whereas clear do not take argument.

My proposal here to differentiate attention of delete and clear, such that clear method don&apos;t care about what effected records and delete method care about effected records.

Such that, clear method will take optional argument of either key or key range. 

Result of clear method is the same, i,e., return undefined.

Result of delete method change to number of records effected. Currently, it returns undefined.

This changes in API spec is backward compatible and also solve the problem of counting on delete as discussed in http://lists.w3.org/Archives/Public/public-webapps/2013JanMar/0057.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89100</commentid>
    <comment_count>1</comment_count>
    <who name="Arthur Barstow">art.barstow</who>
    <bug_when>2013-06-11 18:06:29 +0000</bug_when>
    <thetext>Marked as an enhancement per Joshua&apos;s proposal in http://lists.w3.org/Archives/Public/public-webapps/2013AprJun/0817.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89101</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2013-06-11 18:13:05 +0000</bug_when>
    <thetext>Not for the &quot;V1&quot; spec, so marking RESOLVED / LATER</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89250</commentid>
    <comment_count>3</comment_count>
    <who name="Kyaw Tun">kyawtun</who>
    <bug_when>2013-06-13 12:33:31 +0000</bug_when>
    <thetext>Yes. I agree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122545</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2015-08-10 20:28:57 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/IndexedDB/issues/32</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>