bulk save
This commit is contained in:
parent
43f51c5490
commit
7f14458694
2 changed files with 51 additions and 0 deletions
|
@ -32,6 +32,10 @@ class CouchRest
|
|||
end
|
||||
end
|
||||
|
||||
def bulk_save docs
|
||||
CouchRest.post "#{@root}/_bulk_docs", docs
|
||||
end
|
||||
|
||||
def delete doc
|
||||
slug = CGI.escape(doc['_id'])
|
||||
CouchRest.delete "#{@root}/#{slug}?rev=#{doc['_rev']}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue