Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Commit

Permalink
[docs] adds readme for copy
Browse files Browse the repository at this point in the history
  • Loading branch information
jlank committed Jun 25, 2012
1 parent 0045eb5 commit 11cd741
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11cd741

Please sign in to comment.