summaryrefslogtreecommitdiff
path: root/src/fabric.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/fabric.erl')
-rw-r--r--src/fabric.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fabric.erl b/src/fabric.erl
index 983cd818..80bc6d4c 100644
--- a/src/fabric.erl
+++ b/src/fabric.erl
@@ -6,7 +6,7 @@
% Documents
-export([open_doc/3, open_revs/4, get_missing_revs/2, update_doc/3,
- update_docs/3]).
+ update_docs/3, att_receiver/2]).
% Views
-export([all_docs/4, query_view/5]).
@@ -42,7 +42,7 @@ delete_db(DbName, Options) ->
fabric_db_delete:delete_db(dbname(DbName), opts(Options)).
-
+% doc operations
open_doc(DbName, Id, Options) ->
fabric_doc_open:go(dbname(DbName), docid(Id), opts(Options)).
@@ -60,6 +60,8 @@ update_doc(DbName, Doc, Options) ->
update_docs(DbName, Docs, Options) ->
fabric_doc_update:go(dbname(DbName), docs(Docs), opts(Options)).
+att_receiver(Req, Length) ->
+ fabric_doc_attachments:receiver(Req, Length).
all_docs(DbName, #view_query_args{} = QueryArgs, Callback, Acc0) when
is_function(Callback, 2) ->