Date Wed 01 June 2011 Tags cloud / web

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 powered by Disqus