From 429ea8a1e82c21e24e15f54f6df35a08882cf17b Mon Sep 17 00:00:00 2001 From: hackbard Date: Sat, 4 Nov 2017 14:46:14 +0100 Subject: [PATCH] added raw function to query views --- couchdb.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/couchdb.js b/couchdb.js index 45b63f1..d057d68 100644 --- a/couchdb.js +++ b/couchdb.js @@ -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; -- 2.39.2