summaryrefslogtreecommitdiff
path: root/src/fabric.erl
diff options
context:
space:
mode:
authorBrad Anderson <brad@cloudant.com>2010-06-08 12:00:59 -0400
committerBrad Anderson <brad@cloudant.com>2010-06-08 12:00:59 -0400
commitd7a6bd635ce60d0fc6a6a40dc3027cee308701f6 (patch)
tree56399ffe07b43b40fdfd03cc9799aa5f3fb134d2 /src/fabric.erl
parent4e0c97bf3587e9d0e330494f0d06194c0c4bfa17 (diff)
fabric attachments
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) ->