summaryrefslogtreecommitdiff
path: root/src/fabric.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/fabric.erl')
-rw-r--r--src/fabric.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fabric.erl b/src/fabric.erl
index 7f8f7e23..ed75a5ab 100644
--- a/src/fabric.erl
+++ b/src/fabric.erl
@@ -3,6 +3,7 @@
-export([all_databases/1, create_db/2, delete_db/2, get_db_info/2, db_path/2]).
-export([open_doc/3, open_revs/4, get_missing_revs/2]).
-export([update_doc/3, update_docs/3]).
+-export([all_docs/4]).
-include("fabric.hrl").
@@ -45,6 +46,10 @@ update_docs(DbName, Docs, Options) ->
fabric_update_docs:go(dbname(DbName), docs(Docs), Options).
+all_docs(DbName, #view_query_args{} = QueryArgs, Callback, Acc0) when
+ is_function(Callback, 2) ->
+ fabric_all_docs:go(dbname(DbName), QueryArgs, Callback, Acc0).
+
%% some simple type validation and transcoding
dbname(DbName) when is_list(DbName) ->