]> www.hackdaworld.org Git - outofuni/jsutils.git/commitdiff
added raw function to query views master
authorhackbard <hackbard@hackdaworld.org>
Sat, 4 Nov 2017 13:46:14 +0000 (14:46 +0100)
committerhackbard <hackbard@hackdaworld.org>
Sat, 4 Nov 2017 13:46:14 +0000 (14:46 +0100)
couchdb.js

index 45b63f1eea9c4116e0c3c3dff32c0e718ee3c9d5..d057d68d5678a3c7a703ff389a9796a4d896a7e0 100644 (file)
@@ -66,6 +66,13 @@ var couchdb = {
                        callback(ret.total_rows);
                });
        },
+       get_raw: function(db,raw,callback) {
+               var url=couchdb.type+"://"+couchdb.host+":"+couchdb.port+"/"+
+                       couchdb.prefix+db+raw;
+               couchdb.cdb_xhr('GET',url,null,function(ret) {
+                       callback(ret);
+               });
+       },
        get_item: function(db,key,callback) {
                var url=couchdb.type+"://"+couchdb.host+":"+couchdb.port+"/"+
                        couchdb.prefix+db+"/"+key;