Skip to content
Browse files

[docs] adds readme for copy

  • Loading branch information...
1 parent 0045eb5 commit 11cd741ac42de3796894991025a97288fddf22f6 @jlank jlank committed Jun 25, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 README.md
View
13 README.md
@@ -327,6 +327,19 @@ alice.head('rabbit', function(err, _, headers) {
});
```
+### db.copy(src_doc, dest_doc, opts, [callback])
+
+`copy` the contents (and attachments) of a document
+to a new document, or overwrite an existing target document
+
+``` js
+alice.copy('rabbit', 'rabbit2', { overwrite: true }, function(err, _, headers) {
+ if (!err)
+ console.log(headers);
+});
+```
+
+
### db.bulk(docs, [params], [callback])
bulk operations(update/delete/insert) on the database, refer to the

0 comments on commit 11cd741

Please sign in to comment.
Something went wrong with that request. Please try again.