summaryrefslogtreecommitdiff
path: root/src/fabric_rpc.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/fabric_rpc.erl')
-rw-r--r--src/fabric_rpc.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fabric_rpc.erl b/src/fabric_rpc.erl
index 75ce5e90..90ee8627 100644
--- a/src/fabric_rpc.erl
+++ b/src/fabric_rpc.erl
@@ -1,7 +1,7 @@
-module(fabric_rpc).
--export([open_doc/3, open_doc/4, get_db_info/1, update_docs/3,
- get_missing_revs/2]).
+-export([get_db_info/1]).
+-export([open_doc/3, open_revs/4, get_missing_revs/2, update_docs/3]).
-include("../../couch/src/couch_db.hrl").
-include_lib("eunit/include/eunit.hrl").
@@ -25,13 +25,13 @@ get_missing_revs(DbName, IdRevsList) ->
Error ->
Error
end).
-
+
+open_revs(DbName, Id, Revs, Options) ->
+ with_db(DbName, {couch_db, open_doc_revs, [Id, Revs, Options]}).
+
%% rpc endpoints
%% call to with_db will supply your M:F with a #db{} and then remaining args
-open_doc(DbName, DocId, Revs, Options) ->
- with_db(DbName, {couch_api, open_doc, [DocId, Revs, Options]}).
-
get_db_info(DbName) ->
with_db(DbName, {couch_db, get_db_info, []}).