I found myself using more and more of this one-liner for working with couchdb database:
var getNewDatabusUUID = JSON.parse($.ajax({ type: "GET", url: "/_uuids/", async: false }).responseText); $.log("New uuid generated " + getNewDatabusUUID.uuids);
this example retrieves new uuids from couchdb, but I was using it to retrieve _rev of the document before deletion and similar one-off problems.
Comments
comments powered by Disqus