[html5] r3210 - [] (0) Add a .rollback() method for the sync database API, so you don't have to [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Jun 5 20:16:50 PDT 2009


Author: ianh
Date: 2009-06-05 20:16:49 -0700 (Fri, 05 Jun 2009)
New Revision: 3210

Modified:
   source
Log:
[] (0) Add a .rollback() method for the sync database API, so you don't have to depend on GC if you want to give up a transaction. (credit: ap)

Modified: source
===================================================================
--- source	2009-06-06 03:13:11 UTC (rev 3209)
+++ source	2009-06-06 03:16:49 UTC (rev 3210)
@@ -61127,6 +61127,7 @@
 interface <dfn>SQLTransactionSync</dfn> {
   <span>SQLResultSet</span> <span title="dom-sqltransaction-sync-executeSql">executeSql</span>(in DOMString sqlStatement, [Optional] in <span>ObjectArray</span> arguments);
   void <span title="dom-sqltransaction-sync-commit">commit</span>();
+  void <span title="dom-sqltransaction-sync-rollback">rollback</span>();
 };</pre>
 
   <p>A <code>SQLTransactionSync</code> object is initially <i
@@ -61199,6 +61200,22 @@
 
   </ol>
 
+  <hr>
+
+  <p>When the <dfn
+  title="dom-sqltransaction-sync-rollback"><code>rollback()</code></dfn>
+  method is invoked, the user agent must run the following
+  algorithm:</p>
+
+  <ol>
+
+   <li><p>Rollback the transaction.</p></li>
+
+   <li><p>Mark the <code>SQLTransactionSync</code> object as <i
+   title="">stale</i>.</p>
+
+  </ol>
+
   <p>If a <code>SQLTransactionSync</code> object is garbage collected
   while still <i title="">fresh</i>, the user agent must rollback the
   transaction.</p>




More information about the Commit-Watchers mailing list