couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "HTTP Document API" by DavidVanCouvering
Date Sun, 22 Mar 2009 14:32:45 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by DavidVanCouvering:
http://wiki.apache.org/couchdb/HTTP_Document_API

------------------------------------------------------------------------------
  
     * *non-atomic* (default) - some documents may successfully be saved and some may not.
 It is up to the application to check that all documents were successfully saved/updated.
  
-    * *all-or-nothing* - either all the documents will commit successfully or none will.
However, it does not do conflict checking, so the documents will be committed even if there
are conflicts. Conflicting versions of the document will be saved. 
+    * *all-or-nothing* - either all the documents will commit successfully or none will.
However, it does not do conflict checking, so the documents will be committed even if there
are conflicts.  If any documents have a conflict, then in the response that document will
show a conflict error, for example
  
- - non-atomic - In this mode, 
+ {{{
+ {
+   "docs": [
+     {"_id": "0", "error:" "conflict"},
+     {"_id": "1", "_rev": "3206753266", "integer": 2, "string": "2"},
+     {"_id": "2", "_rev": "426742535", "integer": 3, "string": "3"}
+   ]
+ }
+ }}}
+  
  
  
  ---- /!\ '''Edit conflict - other version:''' ----

Mime
View raw message