diff options
Diffstat (limited to 'share/www/script/couch.js')
-rw-r--r-- | share/www/script/couch.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/share/www/script/couch.js b/share/www/script/couch.js index 505d653f..e1806d6f 100644 --- a/share/www/script/couch.js +++ b/share/www/script/couch.js @@ -108,6 +108,12 @@ function CouchDB(name, httpHeaders) { } return result; } + + this.ensureFullCommit = function() { + this.last_req = this.request("POST", this.uri + "_ensure_full_commit"); + CouchDB.maybeThrowError(this.last_req); + return JSON.parse(this.last_req.responseText); + } // Applies the map function to the contents of database and returns the results. this.query = function(mapFun, reduceFun, options, keys) { |